Redirect via window.top.location gets blocked in Chrome

Highlighted
Tourist
9 0 1

Hi all, when my app tries to redirect via window.top.location to the oauth url, the browser blocks the redirect

 

Bildschirmfoto von 2020-01-19 17-58-38.png

 

Browser console says:

 

Unsafe JavaScript attempt to initiate navigation for frame with origin 'https://myshop.myshopify.com' from frame with URL 'https://app.localhost.net/index.html?queryStuff'. The frame attempting navigation is targeting its top-level window, but is neither same-origin with its target nor has it received a user gesture.

Chrome version 79.0.3945.88

 

Is it a possible shopify wide problem or am I doing something wrong?

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
586 71 128

Hey @Detzler,

 

I'm not seeing any other reports of this issue, so it's not a Shopify-wide problem. Did you follow the Oauth instructions in this guide, including the instructions for escaping the iframe before redirecting to oauth? 

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes