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
{{ message }}
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
This is sort of similar to #9 but I think it has some interesting semantics that might be worth looking into seperately.
The current spec is very clear that Response.redirect MUST be resolved against the current url. This is rather unfortunate by itself since server runtimes don't really have a concept of "current url". Outside of that, redirects (especially when paired with status code 307) are incredibly common for stuff like OAuth flows.
Currently, doing:
returnResponse.redirect("/home",307);
just errors in Node and Deno (without the --location flag). The correct way to do this currently is
which I think is suboptimal. Perhaps this issue should be raised upstream, because this could actually work in a web-standard Response.redirect. Ideally, Response.redirect would just use a relative location for status codes that support it. I'm hoping to champion this change in WinterCG and eventually land it upstream later.
The text was updated successfully, but these errors were encountered:
This is sort of similar to #9 but I think it has some interesting semantics that might be worth looking into seperately.
The current spec is very clear that
Response.redirect
MUST be resolved against the current url. This is rather unfortunate by itself since server runtimes don't really have a concept of "current url". Outside of that, redirects (especially when paired with status code307
) are incredibly common for stuff like OAuth flows.Currently, doing:
just errors in Node and Deno (without the
--location
flag). The correct way to do this currently iswhich I think is suboptimal. Perhaps this issue should be raised upstream, because this could actually work in a web-standard
Response.redirect
. Ideally,Response.redirect
would just use a relative location for status codes that support it. I'm hoping to champion this change in WinterCG and eventually land it upstream later.The text was updated successfully, but these errors were encountered: