Facing issue "Refused to display frame because it set 'X-Frame-Options' to 'deny'"

Facing issue "Refused to display frame because it set 'X-Frame-Options' to 'deny'"

Preet0812
Shopify Partner
1 0 0

Hello,

I am using Shopify Embedded for my Shopify app. I have generated a session token using App Bridge (version 3.7.10), and I am also using @Shopify/app-bridge-react (version 1.30.0) to bind a provider.

However, when I navigate to my app's sales channel, which contains two pages, I encounter an issue upon the first reload. The error message states:

Refused to display 'https://admin.shopify.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

Additionally, when I open two different stores with my app in the same browser, this issue occurs for the second store.

Could you provide a solution for this issue?

Preet0812_0-1741089488996.png

 

Reply 1 (1)

oscprofessional
Shopify Partner
16343 2438 3177

Hello,
Are you currently using the Frame component from Shopify Polaris in your app's admin interface pages?
Please note that the Frame component is deprecated. If your app relies on it, we recommend removing it.

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...