Skip to content
This is an unmaintained snapshot of the Astro v5 docs. View the latest docs.

Unable to set response.

ResponseSentError: The response has already been sent to the browser and cannot be altered.

Making changes to the response, such as setting headers, cookies, and the status code can only be done in page components.

See Also:

Contribute Community Sponsor