-
Security
Fix my CORS configuration
Replaces wildcard CORS with an explicit origin allowlist and correct credential handling.
Free Prompt
What This Does / How This Helps
Replaces the wildcard or reflect-any-origin CORS setup with an explicit allowlist of the origins your frontend actually uses. CORS misconfiguration is a quiet one. With a wildcard or a reflected origin plus credentials, any site can make authenticated requests to your API from a victim's browser and read the responses. It's the classic "temporary" config (set to * to get things working) that ships to production and stays there. Verification is built in: requests from a fake origin should come back without access headers, and requests from your real domain should work unchanged.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).