Skip to content

Instantly share code, notes, and snippets.

@spacecowb0y
Created February 26, 2014 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacecowb0y/9235848 to your computer and use it in GitHub Desktop.
Save spacecowb0y/9235848 to your computer and use it in GitHub Desktop.
before '/api/*' do
headers "Access-Control-Allow-Origin" => "*"
headers "Access-Control-Allow-Headers" => "Authorization,Accepts,Content-Type,X-CSRF-Token,X-Requested-With"
headers "Access-Control-Allow-Methods" => "GET,POST,PUT,DELETE,OPTIONS"
content_type :json
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment