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.
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023