Skip to content

Instantly share code, notes, and snippets.

@itgelo
Created March 23, 2020 11:13
Show Gist options
  • Save itgelo/f036e2bc373f9a22b78cce0760ec249c to your computer and use it in GitHub Desktop.
Save itgelo/f036e2bc373f9a22b78cce0760ec249c to your computer and use it in GitHub Desktop.

Revisions

  1. itgelo created this gist Mar 23, 2020.
    4 changes: 4 additions & 0 deletions curl.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    curl -I -X OPTIONS \
    -H "Origin: http://localhost" \
    -H "Access-Control-Request-Method: POST" \
    "http://domain.com" 2>&1 | grep -i "Access-Control-Allow-Origin\|Access-Control-Allow-Methods"