Shopify app php redirect issue - refused to connect

Highlighted
New Member
4 0 0

I am create an shopify app using php language with billing apis.  This is my app flow:


When user goto billing page, click cancel button. Then go to the shop click my app, I set that the app will redirect to the billing page until user confirm the bill. But it show the error message "***mydomain*** refused to connect".

 

Now I am using php header Location redirect.

 

Also the console shows message "Refused to display '***redirect link***' in a frame because it set 'X-Frame-Options' to 'deny'.".  So shopify deny all redirect action in any app?

 

Also I try to use js "window.top.location.href" but Chrome blocked this type of redirection.

 

Anyone know how to solve this problem. Thank you.

 

Peter

0 Likes
Highlighted
Tourist
5 0 3

Here i'm having the same issue

0 Likes
Highlighted
Excursionist
30 0 5

Hi - I was able to get around this issue by opening up a new browser tab when trying to connect to the charge authorization URL. This resolved the issue for me. Not the best user experience, but it works.

WOTIO App: https://apps.shopify.com/automatic-account-invites
0 Likes