Skip to content

Instantly share code, notes, and snippets.

@mbleigh
Forked from joeybeninghove/mijireh_api.rb
Created December 13, 2011 20:21
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 mbleigh/1473707 to your computer and use it in GitHub Desktop.
Save mbleigh/1473707 to your computer and use it in GitHub Desktop.
class API < Grape::API
version '1'
end
Rack::Builder.new do
use Rack::Cors do |config|
config.allow do |allow|
allow.origins '*'
allow.resource '*', :headers => :any
end
end
run API
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment