Commit 6f1d2aefeaea2bdd0bf0b39296109d7abced761f
1 parent
70320e6c
Exists in
api_tasks
and in
3 other branches
api: fix cors resource url
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/application.rb
... | ... | @@ -136,7 +136,7 @@ module Noosfero |
136 | 136 | config.middleware.use Rack::Cors do |
137 | 137 | allow do |
138 | 138 | origins '*' |
139 | - resource 'api/*', :headers => :any, :methods => [:get, :post] | |
139 | + resource '/api/*', :headers => :any, :methods => [:get, :post] | |
140 | 140 | end |
141 | 141 | end |
142 | 142 | ... | ... |