Next.js Discord

Discord Forum

NextResponse.redirect not working

Unanswered
West African Crocodile posted this in #help-forum
Open in Discord
Original message was deleted.

3 Replies

Avatar
West African Crocodile
When logging the response on the client side I get a successful object in return:

Response {type: 'cors', url: 'https://checkout.stripe.com/c/pay/cs_test_b1cNlhJyEm9onZtIS6405sxjSOQVQL2P4RMZ8j42Vi3nTKWGHLDFd4Qutp', redirected: true, status: 200, ok: true, …}
Do I need to handle the redirect on the client side in this case or?
Avatar
West African Crocodile
I need to do the redirect server-side... as I don't have access to the Stripe secret on the client...