X-Frame Options
A security header controlling who can embed your store in an iframe — preventing clickjacking.
Key Takeaways
- X-Frame-Options controls iframe embedding of your store.
- It prevents clickjacking — invisible overlay attacks.
- Shopify manages this header by default.
- It blocks malicious sites from embedding your store.
- It's a security and protection header.
Overview
X-Frame-Options is a security header that controls whether your store can be embedded in an iframe on another site. It prevents clickjacking — where a malicious site embeds your store invisibly and tricks users into clicking. On Shopify, this header is managed by the platform.
X-Frame-Options prevents clickjacking. Without it, a malicious site could overlay your store invisibly and trick users into clicking buttons (like 'buy' or 'delete') without knowing. The header blocks this — only trusted sites can embed your store, if at all.
X-Frame-Options pairs with website security (the broader topic), security settings (where it's configured), and XSS protection (a related header). It's a security and protection header.
Why X-Frame-Options Matters for Shopify Merchants
- 1
Prevents Clickjacking
The header blocks clickjacking — protects users from trick clicks.
- 2
Protects Customers
Clickjacking can trick users into actions — protection keeps them safe.
- 3
Platform Managed
Shopify manages X-Frame-Options — you don't have to configure it.
- 4
Trust Signal
Security headers signal trust — customers and partners see you're protected.
- 5
Compliance
Security headers help with compliance — a best practice.
Understanding X-Frame-Options
- 1
Shopify handles it
Shopify sets X-Frame-Options by default — no action needed for most stores.
- 2
Three values
DENY (no embedding), SAMEORIGIN (only your site), ALLOW-FROM (specific sites) — Shopify picks appropriately.
- 3
Check your headers
Use security scanner tools to check your headers — confirm they're set.
- 4
Embedding needs
If you need embedding (e.g., a blog embedding your products), work with Shopify's policies.
- 5
Part of security headers
X-Frame-Options is one of several security headers — combine for full protection.
FAQ
Frequently Asked Questions
Need Help with Your Shopify Store?
Reach out for a 45-min Free Consultation
Let's discuss how we can help you achieve your e-commerce goals.
Book A Consultation
