Skip to content

Instantly share code, notes, and snippets.

@AlexR1712
Forked from exAspArk/curl.sh
Created October 24, 2020 16:32
Show Gist options
  • Save AlexR1712/be9616f69a73641272cf99ac29c6bc01 to your computer and use it in GitHub Desktop.
Save AlexR1712/be9616f69a73641272cf99ac29c6bc01 to your computer and use it in GitHub Desktop.

Revisions

  1. @exAspArk exAspArk revised this gist Oct 17, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions curl.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    curl -I -X OPTIONS \
    -H "Origin: http://example.com" \
    -H "Origin: http://EXAMPLE.COM" \
    -H 'Access-Control-Request-Method: GET' \
    http://example.com 2>&1 | grep 'Access-Control-Allow-Origin'
    http://EXAMPLE.COM/SOMETHING 2>&1 | grep 'Access-Control-Allow-Origin'
  2. @exAspArk exAspArk revised this gist Oct 17, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion curl.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    curl -I \
    curl -I -X OPTIONS \
    -H "Origin: http://example.com" \
    -H 'Access-Control-Request-Method: GET' \
    http://example.com 2>&1 | grep 'Access-Control-Allow-Origin'
  3. @exAspArk exAspArk revised this gist Jul 25, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion curl.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1,4 @@
    curl -I -H "Origin: http://example.com" -H 'Access-Control-Request-Method: GET' http://example.com 2>&1 | grep 'Access-Control-Allow-Origin'
    curl -I \
    -H "Origin: http://example.com" \
    -H 'Access-Control-Request-Method: GET' \
    http://example.com 2>&1 | grep 'Access-Control-Allow-Origin'
  4. @exAspArk exAspArk created this gist Jul 25, 2017.
    1 change: 1 addition & 0 deletions curl.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    curl -I -H "Origin: http://example.com" -H 'Access-Control-Request-Method: GET' http://example.com 2>&1 | grep 'Access-Control-Allow-Origin'