Next.js Discord

Discord Forum

CSP Stripe & Iframe

Unanswered
Abyssinian posted this in #help-forum
Open in Discord
AbyssinianOP
Hey, I'm trying to load a @stripe/react-stripe-js component in my next.js 13 application but I only get the skeleton to show that indicates a load state.
I was checking the DOM and I see there are some iframes. Do I need to update the next.config.js file for some CSP ? If yes how would I do that?

4 Replies

AbyssinianOP
thank you will try out
@Clown Follow this guide: https://vercel.com/guides/getting-started-with-nextjs-typescript-stripe
AbyssinianOP
this is just talking about a redirect to stripe checkout sesh
not about react js and how to whitelist an iframe