Re: Why is our sales channels app not working within Shopify admin anymore?

Why is our sales channels app not working within Shopify admin anymore?

FarhanS
Shopify Partner
2 0 1

We have a sales channels app that we show within Shopify admin for a store. Recently, we started having issue and it is not working anymore. We do full oAuth process inside iframe as well in order to authenticate the user with our backend.

 

The issue seems to be that it is trying to login to Shopify and it isn't working because it is in iframe. Is this issue on Shopify's end or do we need to change our approach? I have attached some screenshots with the issue.

  

Screenshot 2024-04-18 at 11.45.24 AM.png

Screenshot 2024-04-18 at 11.45.59 AM.png

Replies 2 (2)

FarhanS
Shopify Partner
2 0 1

Just for more context, I have tried both *.myshopify.com and admin.shopify.com/admin/<slug> for oAuth and neither of them are working inside iframe.

Stacy_Zhuk
Shopify Partner
464 21 65

Hello @FarhanS,

 

You need to make sure that your embedded app that you inserted into Shopify admin panel still responds with a header that has an allowance to be embedded outside the original domain. Something like header('Content-Security-Policy', "frame-ancestors https://{$user- >name} https://admin.shopify.com")

 

Best regards,
Anastasia 

Co-founder at Whidegroup, e-commerce development company from Ukraine
- 10+ years of experience with SMBs
- Deep expertise in custom development & optimization
E-mail: anastasia@whidegroup.com