How can I show cart page in an iframe?

Akashdevgan
Visitor
1 0 1

I'm currently using the debut theme. I want to load the cart page in slide-out iframe. 

But I keep on getting this error an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'"

Reply 1 (1)

Jason
Shopify Expert
11190 225 2283

Why would you load it in an iframe vs just rendering the content from the AJAX cart.js endpoint? By default you will be unable to embed your shop within an iframe but could be something to talk to the Shopify support team about disabling that security feature.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★