#lmifflen
1 messages · Page 1 of 1 (latest)
typically you should not redirect POST requests, you might want to use GET instead, which allows redirect, or you can return the URL and redirect client side
Okay. I have been following this workflow from the stripe documents: https://stripe.com/docs/customer-management/integrate-customer-portal?shell=true#redirect
Is this not the proper way to set up the customer billing portal?
Are you doing the POST with a form submit like that example shows?
Or using a javascript request?
I am using an axios post request from my client application (React/JS)
Right, you shouldnt be redirecting that -- you'll need to modify the integration to either GET or return the URL to be redirected, then direct client side
Similar to this: https://stackoverflow.com/questions/49601795/making-redirects-after-an-axios-post-request-with-express
(obviously not express/node, but the logic is the same)