Lock down CORS policy
The API appears to reflect arbitrary origins while also allowing credentials.
Why it matters
A malicious site may be able to read credentialed API responses from users' browsers.
Fix overview
Use an explicit origin allowlist and do not combine broad CORS with credentials.
Verify
- curl -i -H "Origin: https://launchlock.invalid" https://demo.launchlock.local/api/user
Evidence scope
1 affected URL- https://demo.launchlock.local/api/user
AI fix prompts
Scanner issues and evidence
CORS reflects arbitrary origins
cors / cors.reflected_origin
Evidence URLs
- https://demo.launchlock.local/api/user
{
"allowOrigin": "https://launchlock.invalid",
"allowCredentials": true
}