Configure CORS to allow GET and POST to /oauth
This commit is contained in:
parent
1c5db113e2
commit
2cecfa7d01
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ require "rack/cors"
|
|||
Rails.configuration.middleware.use Rack::Cors do
|
||||
allow do
|
||||
origins "*"
|
||||
resource "/oauth/*", :headers => :any, :methods => [:get, :post]
|
||||
resource "/api/*", :headers => :any, :methods => [:get, :post, :put, :delete]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue