[openstreetmap/openstreetmap-website] Preserve `referer` during oauth JS confirmation (PR #6138)
Tom Hughes
notifications at github.com
Tue Jul 1 07:31:23 UTC 2025
tomhughes left a comment (openstreetmap/openstreetmap-website#6138)
Actually it's a bit more confusing that what I remember, or maybe something has changed. This is what I see in the network log when I hit the login button:

So it tries to load `authorize` from a js fetch call first, which fails when it redirects to login and gets a CORS denial, and then it repeats the process as a normal page load, which works.
I don't think the second part was happening when I first tried it - my memory is that it just stopped after the CORS denial.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6138#issuecomment-3022293221
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6138/c3022293221 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250701/7ccee474/attachment.htm>
More information about the rails-dev
mailing list