Shouldn't the Server Action fetch have an option to include credentials? #72912
Unanswered
therealgilles
asked this question in
App Router
Replies: 2 comments 2 replies
-
Since server actions POST to the same origin, they are included by default. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Follow-up question: If the server action response (from the backend server) contains cookies and a If not , is the only way to use an API endpoint instead? PS: I am using an Apollo Client to make the requests to the backend. I see a |
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
-
Shouldn't the Server Action fetch (below) have an option to include credentials?
From:
next.js/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts
Line 88 in c50109b
Beta Was this translation helpful? Give feedback.
All reactions