
Cross-Origin Resource Sharing (CORS) tells browsers which other websites may read responses from your API. A misconfigured CORS policy can let any website read your users' private data through their own browser.
The most common mistakes are reflecting whatever Origin the request sends, trusting the null origin, or matching origins with a loose pattern, all while allowing credentials. A malicious site can then call your API from a victim's browser and read the response.
null origin.Access-Control-Allow-Credentials: true when truly needed.null origins.If the server echoes any Origin and allows credentials, any website can read authenticated responses from your API through a victim's browser.
The wildcard cannot be combined with credentials, so it is safe for truly public data but should never be used for authenticated endpoints.
Try Vooki Pro free for 7 days
Check that your API only trusts the origins you intended. The trial unlocks every feature for 7 days, and scanning runs on your own machine.
Related: Open redirect vulnerabilities