Skip to content

Instantly share code, notes, and snippets.

@adrianprecub
Forked from madis/gist:4650014
Created April 19, 2017 10:01
Show Gist options
  • Select an option

  • Save adrianprecub/5e3b6c13d65b7ca5d443568eb3e18dc3 to your computer and use it in GitHub Desktop.

Select an option

Save adrianprecub/5e3b6c13d65b7ca5d443568eb3e18dc3 to your computer and use it in GitHub Desktop.

Revisions

  1. @madis madis created this gist Jan 27, 2013.
    13 changes: 13 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    curl \
    --verbose \
    --request OPTIONS \
    http://localhost:3001/api/configuration/visitor \
    --header 'Origin: http://localhost:9292' \
    --header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \
    --header 'Access-Control-Request-Method: GET'


    # http://nils-blum-oeste.net/cors-api-with-oauth2-authentication-using-rails-and-angularjs/#.UQJeLkp4ZyE

    # http://blog.carbonfive.com/2012/02/27/supporting-cross-domain-ajax-in-rails-using-jsonp-and-cors/