You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Came across this problem, its not even on level of annoyance but can completely block access to endpoints returning 404s (on Cloudflare Pages at least).
Describe the bug
The example from the server hooks documentation can cause the following error:
docs: issue since setting headers to ALL responses in the handle function seems dangerous.
Reproduction
Simpler reproduction with identical error:
Logs
No response
System Info
Severity
annoyance
Additional Information
Removing a response header as a solution:
Response.redirect()
spec does not allow modifying the header:Adding a
try-catch
block can be a viable documentation fix.The text was updated successfully, but these errors were encountered: