This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Any help regarding CORS redirect issues? #2246
Labels
question
Ask how to do something or how something works
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]
The text was updated successfully, but these errors were encountered: