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