# Preview issues but iframe shows properly

**URL:** <https://forum.builder.io/t/preview-issues-but-iframe-shows-properly/649>\
**Category:** Technical Questions\
**Created:** [May 18, 2021, 7:57pm UTC](https://forum.builder.io/t/preview-issues-but-iframe-shows-properly/649 "2021-05-18T19:57:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhitch](https://avatars.discourse-cdn.com/v4/letter/z/ba8739/32.png) [@zhitch](https://forum.builder.io/u/zhitch)\
**Post date:** [May 18, 2021, 7:57pm UTC](https://forum.builder.io/t/preview-issues-but-iframe-shows-properly/649/1 "2021-05-18T19:57:33Z")

</div>

I have my integration set up from following the docs to the letter. In the Builder, the iframe shows my homepage, but I still get an error saying it is having trouble connecting to my site; and the insert section just spins. Any ideas?

---

<div class="post-metadata">

**Author:** ![kara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/kara/32/80_2.png) [@kara](https://forum.builder.io/u/kara)\
**Post date:** [May 18, 2021, 8:27pm UTC](https://forum.builder.io/t/preview-issues-but-iframe-shows-properly/649/2 "2021-05-18T20:27:16Z")

</div>

Hey @zhitch, if you could send us a link to your Builder entry (it should start with [builder.io/content](http://builder.io/content)…) as well as a code sandbox/repo of your integration, we can take a look!

---

<div class="post-metadata">

**Author:** ![zhitch](https://avatars.discourse-cdn.com/v4/letter/z/ba8739/32.png) [@zhitch](https://forum.builder.io/u/zhitch)\
**Post date:** [May 18, 2021, 9:13pm UTC](https://forum.builder.io/t/preview-issues-but-iframe-shows-properly/649/3 "2021-05-18T21:13:21Z")

</div>

Sure thing! [Builder.io: Drag and drop page builder and CMS](https://builder.io/content/4898fe089c7d4685ba5a9015f0ca415d)  
repo: [GitHub - zackhitch/nextjs-builder-scratch](https://github.com/zackhitch/nextjs-builder-scratch)

---

<div class="post-metadata">

**Author:** ![kara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/kara/32/80_2.png) [@kara](https://forum.builder.io/u/kara)\
**Post date:** [May 27, 2021, 3:13am UTC](https://forum.builder.io/t/preview-issues-but-iframe-shows-properly/649/4 "2021-05-27T03:13:54Z")

</div>

Thanks for sending this along, we’ll take a look on our end!

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [May 28, 2021, 9:28pm UTC](https://forum.builder.io/t/preview-issues-but-iframe-shows-properly/649/5 "2021-05-28T21:28:38Z")

</div>

Hi @zhitch , I think you might need to setup content security policy headers to allow your site to be iframed by [Builder.io](http://Builder.io)  
similar to this line [nextjs-shopify/next.config.js at 9ae21086f848fcf019237b01ebb794f691c88f37 · BuilderIO/nextjs-shopify · GitHub](https://github.com/BuilderIO/nextjs-shopify/blob/9ae21086f848fcf019237b01ebb794f691c88f37/next.config.js#L14)
