Skip to content

无法设置响应。

ResponseSentError:响应已发送到浏览器并且无法更改。

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

¥What went wrong?

无法在页面组件之外对响应进行更改,例如设置标头、cookie 和状态代码。

¥Making changes to the response, such as setting headers, cookies, and the status code cannot be done outside of page components.

Astro 中文网 - 粤ICP备13048890号