diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-09-15 18:37:25 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-09-15 18:37:25 +0200 |
commit | 98f82570cee3e4da2e057fb59451a983c52568bb (patch) | |
tree | fb44e9c7738aa3a3483fecdbe458ba111343b154 | |
parent | d05e0f9a367c6b4eafabdaf86272a7fa0785c11e (diff) |
add rack-cors gem for swagger api
-rw-r--r-- | application.rb | 2 | ||||
-rw-r--r-- | lazar-rest.gemspec | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/application.rb b/application.rb index 37de1d0..d901393 100644 --- a/application.rb +++ b/application.rb @@ -1,5 +1,7 @@ include OpenTox +require 'rack/cors' + # add CORS support for swagger use Rack::Cors do |config| config.allow do |allow| diff --git a/lazar-rest.gemspec b/lazar-rest.gemspec index 525865f..7fbe452 100644 --- a/lazar-rest.gemspec +++ b/lazar-rest.gemspec @@ -20,4 +20,5 @@ Gem::Specification.new do |s| s.add_runtime_dependency "haml" s.add_runtime_dependency "sass" s.add_runtime_dependency "unicorn" + s.add_runtime_dependency 'rack-cors' end
\ No newline at end of file |