Skip to content

Instantly share code, notes, and snippets.

@spacecowb0y
Created Feb 26, 2014
Embed
What would you like to do?
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