How to prevent app rejection due to security headers and authenticity issues?

How to prevent app rejection due to security headers and authenticity issues?

Ashvin1
Shopify Partner
2 0 1

When i put app in app store app will be reject by shopify 

 

issues:

 

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-ancestors https://[shop].myshopify.com https://admin.shopify.com, where [shop] is the shop domain the app is embedded on.

 

App must verify the authenticity of the request from Shopify.
Your app's HTTPS webhook endpoints must validate the HMAC digest of each request, and return an HTTP 401 (Unauthorized) response when rejecting a request that has an invalid digest. Learn more about verifying a webhook

Replies 0 (0)