Synthetic fixtures computed locally. No model or production service is contacted.
Experiment workspace
Decision trace
The question this experiment answers
A browser script on some origin calls https://api.bookstore.example with the session cookie. Can that script read the response? Two decisions answer it. First the browser decides whether to send the cookie, from the cookie's SameSite attribute and whether the caller is same-site. Then it runs the Fetch standard CORS check on the response: Access-Control-Allow-Origin must equal the request's origin, and for credentialed requests Access-Control-Allow-Credentials must be true. Choose how the server picks Allow-Origin and replay a list of requests from trusted pages, attackers and look-alike hosts.
Change one assumption at a time
Start from a preset and change a single control. In reflect_none, switch the policy to exact and the leak disappears. In reflect_lax, set SameSite to Strict: the same-site subdomain still reads the signed-in response. In suffix, change the allowlist line to .bookstore.example and the look-alike host is blocked. In preflight, add PATCH to the allowed methods and X-Case-Id to the allowed headers. In cache_novary, turn Vary: Origin on. Request lines have the form https://shop.bookstore.example GET include, with an optional header name such as X-Case-Id; the origin may also be null.
Expected outcomes
reflect_none: https://evil.example reads the signed-in response. reflect_lax: evil.example reads only an anonymous response because the Lax cookie is not sent cross-site, but https://old-promo.bookstore.example, a same-site subdomain, gets the cookie and reads it. suffix: https://evilbookstore.example gets through. regex: https://shop.bookstore.example.evil.example gets through. null_allowed: the null origin gets through. wildcard_creds: the shop's credentialed request is blocked and only anonymous reads work. exact: only the two trusted origins can read, and all five requests still carry the cookie. preflight: the help-desk PATCH and its GET with X-Case-Id fail the preflight until the method and header are allowed, and the attacker's PATCH stays blocked either way. cache_novary: the help-desk console receives the shop's cached Allow-Origin and is blocked. These match the companion Python model.
Read the table and the trace
The table lists every request with whether the cookie was sent, the preflight result, the Allow-Origin value the browser saw (marked cached when a shared cache served it) and the outcome: LEAK when an untrusted origin reads a signed-in response, read with cookie for intended reads, read with no cookie for anonymous responses, and blocked. The trace explains each decision in words and ends with a summary and a verdict.
Reset and export
Reset inputs restores the selected preset and recomputes. Export JSON downloads the inputs, every request row, the metrics, the trace and the stated limits, which can serve as a fixture for testing a real CORS configuration.
Limits
A rule model, not a browser. The site of an origin is taken as its last two host labels; the public suffix list, third-party cookie blocking, private network access, the Secure attribute and redirects are not modelled. Simple requests are sent with the cookie even when the response is blocked, as browsers do; a failed preflight stops the real request. The shared cache stores one response and serves it to the next request unless Vary: Origin separates them. Regular expressions use JavaScript syntax with a search, not a full match. Origins, hosts and cookies are synthetic.