curl -sI https://example.com | grep -i 'access-control'

Category: Web App Development

curl -sI https://example.com | grep -i 'access-control'

Inspect CORS headers on a response

Fetches only the response headers and filters for CORS-related ones like Access-Control-Allow-Origin. The -I flag sends a HEAD request and -s quiets progress output. A missing header here explains why a browser blocks your cross-origin calls.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.