Testing CORS with CURL

curl --verbose -H "Access-Control-Request-Method: GET" -H "Origin: https://example.com" --head https://example.com | grep "Access-Control-Allow-Origin"