CORS Security Configuration Checker
Check CORS configuration for security issues free online. Detects overly permissive Access-Control-Allow-Origin settings that could expose your API to abuse.
Fetched directly from your browser.
How to Use This Tool
CORS Is Often Misconfigured in the Direction of Too Permissive
Cross-Origin Resource Sharing exists to relax the browser's default same-origin restriction in controlled, deliberate ways. The problem is that developers debugging a frustrating CORS error during development often reach for the broadest possible fix -- a wildcard origin -- and that broad fix sometimes makes it to production unchanged, turning a development convenience into a production security gap.
This checker fetches an endpoint's actual CORS headers and flags patterns that are commonly problematic, particularly wildcard origins on what might be a sensitive or authenticated endpoint.
The Wildcard-Plus-Credentials Combination Browsers Actually Block
Modern browsers specifically refuse to honor Access-Control-Allow-Origin: * when Access-Control-Allow-Credentials: true is also set, precisely because that combination would let any website make authenticated requests on a logged-in user's behalf. This built-in browser protection closes off the most dangerous version of this misconfiguration, but it does not protect against wildcard-without-credentials exposing non-authenticated but still sensitive data.
Reflected Origin -- A Subtler Version of the Same Problem
Some server implementations try to be "smart" about CORS by echoing back whatever Origin header the requesting browser sent, rather than checking it against an allowlist. This looks more secure than a wildcard at a glance, but functionally permits any origin just the same, since an attacker's site simply sends its own origin and gets it reflected back as allowed.
Frequently Asked Questions
No comments yet
Be the first to share your experience with this tool!