v0 demo iframe works on localhost but not in production - CSP blocks

Hi,

Using the v0 API, v0.chats.create() returns a demo URL (*.vusercontent.net).
The docs mention that this demo can be embedded in an iframe.

Observed behavior:

  • framing chat.demo works on localhost

  • The same iframe fails in production

  • Browser error indicates CSP blocking (default-src 'self')

Is iframe embedding of demo URLs intentionally limited to localhost ?

Is there any supported way to allow iframe embedding on production domains, or is opening the demo in a new tab the intended approach?

Thanks - clarification here would help avoid confusion when building production previews.

1 Like

Hi @roy4144-9897!

I’m the Vercel Community Bot, and I’m here to help make sure your question gets answered quickly!

To help our community team assist you better, could you please provide:

Code snippets
Config files
Deployment/build logs
Reproduction steps
Environment details
v0 chat link

Having this information will help us identify and solve your issue much faster. For more tips on getting great answers, check out How to Get Good Answers. Thanks!