v0 blocks WorkOS authentication due to missing iframe CSP directives

Problem

My engineering team is running into issues using v0 with WorkOS auth. It works perfectly with preview branches in our WorkOS staging setup, but v0 blocks our auth inside of v0.

Here is the console error we see:

Error:

Framing 'https://api.workos.com/' violates the following Content Security Policy directive: "frame-src 'self' http://localhost:* https://*.vusercontent.net/ https://*.lite.vusercontent.net/ https://generated.vusercontent.net/ https://*.vercel.run/ https://*.vercel.app/ https://*.vercel.sh/ https://vercel.live/ https://vercel.com https://vercel.fides-cdn.ethyca.com/ https://js.stripe.com/ https://*.accounts.dev https://*.clerk.accounts.dev https://ops.askchapter.org". The request has been blocked.

Right now at least Clerk is supported here, so I feel like just adding WorkOS makes sense. Until this is solved my team is unable to migrate from Figma Make.

1 Like