Skip to content

Instantly share code, notes, and snippets.

@joeybeninghove
Created December 13, 2011 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joeybeninghove/1473680 to your computer and use it in GitHub Desktop.
Save joeybeninghove/1473680 to your computer and use it in GitHub Desktop.
class API < Grape::API
version '1'
use Rack::Cors do |config|
config.allow do |allow|
allow.origins '*'
allow.resource '*', :headers => :any
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment