无法设置响应。
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.
Error Reference