Created
June 15, 2022 07:42
-
-
Save caprica/250c546132d11bb029e5c1a0ae464374 to your computer and use it in GitHub Desktop.
Testing CORS headers with curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H "Access-Control-Request-Method: GET" -H "Origin: http://localhost:3000" --head http://my.api.com/whatever | |
curl -H "Access-Control-Request-Method: GET" -H "Origin: http://localhost:3000" --head http://my.api.com/whatever | grep "<" | |
curl -H "Access-Control-Request-Method: GET" -H "Origin: http://localhost:3000" --head http://my.api.com/whatever | grep "Access-Control" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment