Checks · HDR-005
HDR-005 · CORS allows any origin with credentials
P1 Needs attentionWhy it matters
Reflecting any origin and allowing credentials lets another website call your API as the visitor.
How we detect it
An OPTIONS request with a foreign Origin receives that origin back with credentials allowed, or a wildcard with credentials.
How we fix it
Allow only the origins you own.
Can it be fixed automatically? Yes, with a template change