[openstreetmap/openstreetmap-website] Allow HTTP to localhost on list of redirect URIs for OAuth2 applications (Issue #3613)

Aadesh Baral notifications at github.com
Fri Jul 22 09:15:39 UTC 2022


- My frontend application is running on localhost:3000
- My OAuth2 redirect URI is 127.0.0.1/authorized
- Authorization is done by opening a new popup window after the user clicks on the login button on my application. After authorization is complete user needs to be redirected to the main application tab closing the popup window with the granted code where the code can be exchanged with an access token. 


Where I am getting CORS is during redirecting the user to the main application tab after the authorization code is obtained. 
![cors_error_oauth](https://user-images.githubusercontent.com/67958673/180406749-fc8b2f07-7964-4eba-89ca-fd986a3556e0.png)


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3613#issuecomment-1192361287
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3613/1192361287 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220722/9bac3ef2/attachment.htm>


More information about the rails-dev mailing list