Edited: Dec 21, 2018
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.
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'".