projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Configure CORS to allow GET and POST to /oauth
[rails.git]
/
config
/
initializers
/
cors.rb
diff --git
a/config/initializers/cors.rb
b/config/initializers/cors.rb
index 6fbeb916127e9117bfd3363f419013fdb4747410..9bbf937cfef24cc0493251c971fd918377434001 100644
(file)
--- a/
config/initializers/cors.rb
+++ b/
config/initializers/cors.rb
@@
-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