Skip to content

Commit

Permalink
Allow cross origin access to OAuth 2 token endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jul 6, 2021
1 parent 9db8488 commit ba8093f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ def call(env)
allow do
origins "*"
resource "/oauth/*", :headers => :any, :methods => [:get, :post]
resource "/oauth2/token", :headers => :any, :methods => [:post]
resource "/oauth2/revoke", :headers => :any, :methods => [:post]
resource "/oauth2/introspect", :headers => :any, :methods => [:post]
resource "/api/*", :headers => :any, :methods => [:get, :post, :put, :delete]
resource "/diary/rss", :headers => :any, :methods => [:get]
resource "/diary/*/rss", :headers => :any, :methods => [:get]
Expand Down

0 comments on commit ba8093f

Please sign in to comment.