Skip to contentLockpick
How it worksPricingDocs

Read

  • BlogPlain answers to common security questions
  • GuidesStep by step fixes for common setups
  • Security checksEvery check we run, explained

Learn

  • Learn with PickTwo-minute lessons on how sites get attacked
  • Lockpick for ClaudeCheck sites from Claude and other assistants
  • GlossaryThe words we use, in plain words

Company

  • ChangelogWhat changed, newest first
  • StatusWhether scans are running right now
  • Security and trustHow we check and what we never do
Sign inCheck it
Checks

Does your site let other websites read responses with your visitors’ cookies?

By Mark KashefPublished October 8, 2026

The CORS check sends one request that claims to come from an unrelated website, with no cookies, and flags a response that trusts that website while allowing browser credentials.

What does this check look at?

It looks at whether a response trusts an unrelated website as an origin while allowing browser credentials. MDN explains that credentials include cookies and authentication headers, and that this header tells browsers whether the server allows them in cross-origin requests.

Pulse and Deep scans both run it.

Curious what your site shows from outside? The quick check is free and needs no account.

Check it

What does a result mean?

What the report showsWhat it meansWhat to do
Medium findingAn unrelated origin was echoed back with credentials allowed.Allow only the origins you trust, from a fixed list.

No visitor cookie is sent, so it does not show private data can be read from another site. It also does not show what a signed-in visitor would see from that response. A clean result means nothing was found in what the scan read. It does not prove the problem is absent from parts the scan never sees.

How serious is a finding?

Fix this soon. A finding of this kind needs a victim or a second step before it causes harm, so it ranks below anything someone could use directly. Confidence starts high, because a response from your site shows the thing itself. The report lists what to fix by how directly someone could use it, not by the severity label.

What does a confirmed finding have to show?

PartFor this check
Where it startsAny website a signed-in visitor opens
The protection that should stop itAccess-Control-Allow-Origin reflected an unrelated origin with credentials allowed
What is reachedThe browser lets that website read the response with the visitor's cookies
What followsWhatever this route returns to a signed-in visitor

Which standards does it relate to?

StandardReference
OWASP Top TenA01:2025 Broken Access Control
CWECWE-942
ASVSv5.0.0-3.4.2

Each one is a related control, not a verification. A scan sees what anyone online can see, so it never proves a whole requirement is met.

Fix it with your AI

The usual cause is code that copies the request Origin into the response. Replace it with an allowlist.

Fix prompt for any coding agent
My server reflects any Origin in Access-Control-Allow-Origin while sending Access-Control-Allow-Credentials: true. Find the CORS configuration or middleware that does this. Replace it with a fixed allowlist of the exact origins that need credentialed access, return no CORS headers for any other origin, and add Vary: Origin. Add a test that a request from an unlisted origin does not get Access-Control-Allow-Origin back.

How to check

Say Atlas, our example app at atlas.example, uses a CORS library set to reflect every origin. The check flags the reflected test origin, and the allowlist fixes it.

Run a Pulse scan from your Lockpick account to see it for your site. Pulse or Deep explains what each scan reads, and the full list of checks shows the rest.

Questions people ask

Is Access-Control-Allow-Origin set to a wildcard the same problem?

No. Browsers refuse to send credentials to a wildcard response. Reflecting any origin with credentials allowed is the dangerous combination.

Did the scan read private data?

No. It sent no cookies. A real attack needs a signed-in visitor to open the attacker page, so the finding needs a victim to matter.

See what your site shows from outside

A quick check reads your homepage the way a visitor would and gives you a score. No account needed.

Check your site

Related pages

  • Do your API responses send the right protective headers?
  • Does your API advertise methods that change data?
  • Do the cookies on your public pages carry the right protections?

Sources

  1. Access-Control-Allow-Credentials header MDN Web Docs, read on October 7, 2026
  2. How we rate findings Lockpick docs, read on October 7, 2026

About the author

Mark Kashef, Founder of Lockpick

I'm Mark, and I build Lockpick. I write these pages, and each one is checked against its sources before it goes live. The Updated date changes only when the page itself does.

Lockpick
PricingMethodologyDocsBlogGuidesSecurity checksLearn with PickSecurity and trustLockpick for ClaudeChangelogStatusFacts for AI assistants

Lockpick is a security scanner for vibe-coded apps. It checks what your live site exposes and what a GitHub repo or AI skill would do before you install it, then gives you a fix prompt for Lovable, Bolt, Replit, Cursor or Claude Code.

Lockpick assesses public pages you are authorized to test, and public GitHub code it never runs.

© 2026 LockpickTermsPrivacyContactSign in