Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 1.15 KB

content-security-policy.md

File metadata and controls

10 lines (6 loc) · 1.15 KB

Content Security Policy Header

Shopify App handles Rails' configuration for Content-Security-Policy Header when the ShopifyApp::FrameAncestors controller concern is included in controllers. This is tyipcally done by including the ShopifyApp::Authenticated controller concern rather that directly including it.

Included Domains

For actions that include the ShopifyApp::FrameAncestors controller concern, the following hosts are added to the Content-Security-Policy header as per the store requirements:

  1. current_shopify_domain || "*.myshopify.com" if current shopify domain isn't present
  2. "https://admin.shopify.com"