I have implemented frame-ancestors content security policy directive but not sure how to test if they are implemented correctly. I have also checked url via this website https://securityheaders.com/. It seems fine but Shopify have rejected my app and send this message. I am using laravel in backend
Requirements that must be met before initial screening
App must set security headers to protect against clickjacking.
Your app must set the proper frame-ancestors content security policy directive to avoid clickjacking attacks. The ācontent-security-policyā header should set frame-ancestorshttps://[shop].myshopify.com https://admin.shopify.com, where [shop] is the shop domain the app is embedded on.
Actually, we sent multiple emails to the support team of Shopify with screencasts and screenshots. And at the end of the day, they said that we do have proper content-security-headers. But they havenāt elaborated on why we were rejected during pre-screening. I will keep this post in unresolved status to see if anyone has any ideas on why that could happen.
My app passed the check, so I took multiple screencasts of that check to prove that the app correctly sets frame-ancestors directive and send them to Shopify support. It took almost two weeks for them to resolve the issue, but at the end of the day, they agreed that there is no problem with the app.
Did you ever figure this out? Iām upgrading my (also PHP) apps over the holiday, and I canāt get any partner or dev stores to stick to the admin.shopify.com domain - they all redirect to xyz.myshopify.com.