How can I show cart page in an iframe?

Akashdevgan
New Member
1 0 0

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'"

0 Likes
Jason
Shopify Expert
10037 119 1872

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.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes