Any help regarding CORS redirect issues? #2250
Unanswered
MauriceArikoglu
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
I am getting several CORS errors when using the signin with my custom oauth provider. I managed to fix the earlier CORS preflight issues by making sure the request granting access and redirecting the auth code to next-auth is a GET request and also having a next.config.js file with this configuration:
Now I am still getting issues though. I can configure my fetch request so that I don't get any CORS errors from the browser anymore (browser-agnostic issue btw - using Safari, Firefox, Chrome...) - but the issue stays the same: The redirect back to the service does not work aka the OAuth service works fine (at least in Safari, see my other issue #2244 - as I am having issues with state mismatch in Firefox and Chrome) but the browser wont ever follow the 302 from my oauth service to go back to where it came from.
Web App running on localhost:3000
OAuth Service running on localhost:3001
How to reproduce ☕️
I am afraid its a little complicated to reproduce... see #2244 for big picture
[email protected]
Beta Was this translation helpful? Give feedback.
All reactions