testing cors

Shell
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

Also in Shell: