All things Shopify and commerce
Hi,
I recently ran into an issue with Shopify setting unnecessarily strict HTTP response headers: "X-Frame-Options: DENY" and/or "Content-Security-Policy: frame-ancestors: 'none';". Furthermore, the headers are set on the server-side and cannot be customized by the merchant. This is a CRITICAL issue for merchants that want to use apps that rely on iframes (and consequently developers of such apps).
When I looked for answers here on the forums, the first topic I found was over four years old.
Could you allow merchants to change the "X-Frame-Options" response header value (and/or "Content-Security-Policy", directive "frame-ancestors", if that is used) via the Shopify Admin panel? At least to "SAMEORIGIN" ('self' in case of CSP), which would hardly cause security risks. This would be a BIG help to the mentioned merchants (and developers)...
Thanks!
Solved! Go to the solution
This is an accepted solution.
Hi @Zanar
I'd be happy to share some more information on this topic with you and let you know what the options are moving forward. This option is enabled by default for all online stores as a preventative measure to protect from clickjacking attacks on the store.
You can request this is disabled through our authenticated support channels (Shopify Help Center), but before doing so please review the information I shared below. If you accept these risks then feel free to make this request to our support team through the Help Center.
Shay | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Hello, Shopify staff?
BUMP!
I am wondering the same. I need to it be set to sameorigin aswell.
This is an accepted solution.
Hi @Zanar
I'd be happy to share some more information on this topic with you and let you know what the options are moving forward. This option is enabled by default for all online stores as a preventative measure to protect from clickjacking attacks on the store.
You can request this is disabled through our authenticated support channels (Shopify Help Center), but before doing so please review the information I shared below. If you accept these risks then feel free to make this request to our support team through the Help Center.
Shay | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025