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
The issue here is that the Response returned from a fetch() is immutable, but Astro expects to be able to add headers to it. You can fix it by returning a new Response with the response:
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
https://github.com/ccbikai/astro-debug
How to reproduce:
npm run dev
Visit
http://localhost:4321/api/https://http.im/status/200
, no error reportedAccess
http://localhost:4321/api/https://http.im/status/500
, and encounter an errorTypeError: immutable
.What's the expected result?
only return 500 http response
Link to Minimal Reproducible Example
https://github.com/ccbikai/astro-debug
Participation
The text was updated successfully, but these errors were encountered: