How do I change xframe setting?

How do I change the xframe option setting from away from same origin?

I’m not sure what you are trying to do, but be aware that Wix Code limits access to the page’s HTML. Accessing document elements such as div, span, button, etc is off-limits. The way to access elements on the page is only through $w.

One small exception is the $w.HtmlComponent (which is based on an iFrame). This element was designed to contain vanilla HTML and it works just fine. You just can’t try to trick it by using parent, window, top, etc. Same goes with the Javascript evaluate() function. It is sandboxed and does not allow access to the DOM.

I wanted to whitelist a domain through X-Frame options, since Wix is preventing my iFrame from being loaded. Is this possible? I’m trying to embed Shopify buy buttons / checkout flow.

Refused to display 'https://levy-electric.myshopify.com/25462276182/checkouts/29b956da25a5af0e92e4b8de37b678f5?key=461f22e8f422c8bc431890eab55050e1' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".