Development discussions around Shopify APIs
I have an php codeignitor website. I wanna load my application into shopify admin iframe. I generated the access token. And Api process is working fine (i.e i am able to create order from api, and handle products and order ). My entire process is working good but website is not open in iframe.
I dont know how to set content security policy frame ansector.
I am unable to intigrate app bridge with my CI Application.
I read the app-bridge documentation properly.
i got the following error:-
1) Refused to frame 'http://localhost/' because it violates the following Content Security Policy directive: "frame-src app.shopify.com *.shopifyapps.com *.myshopify.com *.myshopify.com https://* shopify-pos://*"
2) Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://xxxx.myshopify.com') does not match the recipient window's origin ('null')
Please help me ASAP.
Thanks in advance
Solved! Go to the solution
This is an accepted solution.
Hi @Manishrai24,
Are you running your app in localhost? if so it will not work with http://localhost url
You need ssl and domain name other than localhost
This is an accepted solution.
Hi @Manishrai24,
Are you running your app in localhost? if so it will not work with http://localhost url
You need ssl and domain name other than localhost
thanku @Jivan_Suhagiya
Yes , i m running my app on localhost.
Let me upload my code to the server , then i will check that it is working fine or not.
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023