Cross-Origin-Resource-Policy Builder & Analyzer
Generate or analyze Cross-Origin-Resource-Policy response values. Validates same-origin, same-site, and cross-origin policies, explains resource embedding and cross-origin isolation tradeoffs, and warns when broad exposure is intentional.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What CORP is for
Cross-Origin-Resource-Policy is a response header that tells a browser which origins are allowed to load a resource from another origin. It is a loading policy rather than a reading policy: same-origin stops every cross-origin page from loading the resource, same-site permits pages on related sites such as the www and API variants of one domain, and cross-origin makes the resource freely embeddable. The tool takes one of those three values and explains the choice in plain terms, so you can decide what a given asset should allow before you set the header.
Analyze versus build
In build mode the value picker produces the finished header line and saves it as cross-origin-resource-policy.txt, with the choice echoed in the stats. In analyze mode you paste whatever value a server is currently sending — from a response header, a security scan or a CDN config — and the tool normalises it, says whether it is a valid CORP value, and reports the assessment, so a typo like same-origin; or SameSite is called out as invalid instead of being copied onward. Any value that is not exactly one of the three is rejected with the list of acceptable options.
The trade-off between isolation and functionality
A strict policy protects a resource from being embedded by pages that do not own it, which blocks the side channels that spectre-style attacks exploit when combined with cross-origin isolation headers such as COEP. But the same restriction can break legitimate embedding — a payment iframe from another origin, a CDN-hosted image used by many sites — which is why cross-origin is the deliberate choice for assets meant to be shared. The assessment for cross-origin says so explicitly, because a broad policy is usually a decision, not a default.
What it does not do and where it runs
CORP controls loading, not reading: whether a script may read the bytes of a cross-origin response is CORS’s job, and the note says to configure CORS separately when both are needed. The check is a small local validation of the text you type or the value you pick — nothing is fetched, no live response is probed, and no request leaves the page, so you can use it as a reference while configuring a server or a service worker.
Questions
What does CORP protect?
It lets a resource declare which origins may load it in cross-origin contexts, reducing unwanted reads or embeddings in supported browsers.
Which value is strictest?
same-origin is strictest, same-site permits related sites, and cross-origin permits broad embedding.
Does CORP replace CORS?
No. CORP controls loading/embedding policy, while CORS controls whether scripts may read cross-origin responses.
Related tools
See category- HTTP Security Headers Analyzer
- Origin-Agent-Cluster Builder & Analyzer
- Content-Security-Policy Builder & Analyzer
- :nth-child An+B Evaluator
HTTP Security Headers Analyzer
Review pasted HTTP response headers for common browser security protections.
Origin-Agent-Cluster Builder & Analyzer
Build or inspect origin-keyed browsing isolation signals.
Content-Security-Policy Builder & Analyzer
Build or inspect CSP directives and sources.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.