Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

testing cors

curl -I -X OPTIONS 
  -H "Origin: ${MY_URL}" 
  -H 'Access-Control-Request-Method: GET' 
  "${MY_URL}/SOMETHING" 2>&1 | grep -i 'Access-Control-Allow-Origin'
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #testing #cors
ADD COMMENT
Topic
Name
5+2 =