W3cubDocs

/Astro

Astro.response.headers must not be reassigned.

AstroResponseHeadersReassigned: Individual headers can be added to and removed from Astro.response.headers, but it must not be replaced with another instance of Headers altogether.

Thrown when a value is being set as the headers field on the ResponseInit object available as Astro.response.

© 2021 Fred K. Schott
Licensed under the MIT License.
https://docs.astro.build/en/reference/errors/astro-response-headers-reassigned/