diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-06-02 19:07:59 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-06-02 19:07:59 +0200 |
commit | bb2c0023308495d0308c8dda65d7428196be26ed (patch) | |
tree | 6e97488e59fbab106bd984911800ab567df54d3b | |
parent | 012eb548d764eb76b1a21f40c3af97467a013d49 (diff) |
fix CORS routefeature/cors_support
-rw-r--r-- | lib/opentox.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index be248b6..ed1e70e 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -32,7 +32,7 @@ module OpenTox use Rack::Cors do |config| config.allow do |allow| allow.origins '*' - allow.resource "/#{SERVICE}/", + allow.resource "/#{SERVICE}/*", :methods => [:head, :get, :post, :put, :delete, :options], :headers => :any, :max_age => 0 |