📜  测试 cors - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:21.393000             🧑  作者: Mango

代码示例1
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'