Replies: 1 comment 1 reply
-
next-auth doesn't need axios, also not sure where you would need this. If you want to create your own set of axios-based functions for some reason, here is the overview of our REST endpoints https://next-auth.js.org/getting-started/rest-api |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
How to set CORS for the next-auth request ?
Is it even possible currently?
How to reproduce ☕️
I am trying to connect my axios instance (from another backend) to an API route authenticated by next-auth. The axios instance gets the set-cookie header, but doesn't actually set it in the header for the next request (doesn't maintain the session).
withCredential
istrue
.Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions