Capture POST and redirect with POST data to client #4053
Answered
by
heymartinadams
heymartinadams
asked this question in
General
-
Might anyone know how it’s possible to capture form POST data on a serverless function and then reroute that incoming request to the client? In order to implement “Sign in with Apple”, I need to capture the form POST data on a server and reroute it to my client. See here (at bottom). However, not sure if a serverless API endpoint has that ability. Noticed a similar, related issue with NextJS: vercel/next.js#7074 |
Beta Was this translation helpful? Give feedback.
Answered by
heymartinadams
Apr 12, 2020
Replies: 1 comment
-
Looks like I can redirect like this: res.writeHead(302, 'Redirect', { Location: url })
res.end() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
heymartinadams
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like I can redirect like this: