We are developing app for Shopify.
On App installation when we click Install App button in shopify admin area, Shopify shows the loader inside Shopify instead of redirecting to our app specific webpage and giving following error:
"Uncaught DOMException: Failed to set the 'href' property on 'Location': The current window does not have permission to navigate the target frame"
Found that issue is due to iframe.
Does anybody know how we can resolve this issue, is it bug on Shopify end? OR is there something that we can do to resolve it.
You are using custom app ie developed by you and using in shopify or you are using any default app of shopify.
Can you give some more information about your issue? Which stage of installation is the issue? What is the "App URL" as set in your partner dashboard?
Keep in mind that if your app is embedded, you will need to escape the iframe during the initial OAuth redirect to Shopify. You can use a top level redirect for this.
Hi again @SocialPanda,
When you click on the app in the shop admin, we redirect to your app's "App URL" as it is set in your partner dashboard. If we detect the app is Embedded, we will try to embed in in the admin. Otherwise, it will be redirect at the top level. If there's an issue with the app taking 5-10 minutes to load, it sounds like there's an error in your app url that is being loaded. I've seen redirect loops cause a similar issue in the past, could that be the case here?
Also, keep in mind that if your app is embedded, you will need to ensure you aren't setting the X-Frame-Options header value to DENY.
If you have more details about what exactly happens when you click it, that would be helpful. For example, what do you see in your server logs? Does the app load eventually?