Skip to content

HTTP requests possible in server actions? #66114

Answered by icyJoseph
VMLuca asked this question in App Router
Discussion options

You must be logged in to vote

Yes you should be able to forward a request from the server action to a 3rd party, just remember that this would run in the context of the server, so cookies and other stuff that the client has set, won't be available when you craft the request from within the server action.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VMLuca
Comment options

Answer selected by VMLuca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants