Blog · November 15, 2026
Does your API let any website use it?
A quick CORS fix can let any site call your API. Here's how to check and fix it.
When an AI tool hits a "CORS error," a common quick fix is to allow every website: Access-Control-Allow-Origin: *. The error goes away. But now any site can call your API from a visitor's browser. If your API also accepts logins or cookies, a bad site might read or change that user's data.
How to check:
- Search your code for
Access-Control-Allow-Origin,cors(, ororigin: "*". - Look for settings that copy back whatever origin asks, or allow credentials for every site.
- List the sites that really need your API. Usually it's just your own domain.
To fix it, ask your AI tool: "Set CORS to allow only my own domain. Don't use a wildcard. Only allow credentials for that domain."
VibeVigil scans your live app for common security gaps. Try it free: https://vibevigil.com
A short note. Not a promise.
If you want to know about your own site, run the free scan.
Scan a site you own. It is free. No account.
You see the report first. Saving the site is optional.