Kavach

Fix · Apache

Fix “CORS policy” on Apache

Never echo back the request Origin. Allow only a fixed list of your own origins, and only send credentials to those.

Header always set Access-Control-Allow-Origin "https://yourapp.com"

Verify the fix

Re-run the CORS policy check after deploying. Test config changes in staging first and keep a rollback: a wrong header can break a site faster than a missing one.

Other stacks: nginx · Caddy · Express / Node · Cloudflare

Scan your site free → Monitor it continuously