Skip to content
Snippets Groups Projects
Commit bc955eaf authored by Shin Adachi's avatar Shin Adachi Committed by Eugen
Browse files

add `patch` method support to CORS (#2408)

parent 2d99c962
Branches
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ module Mastodon
allow do
origins '*'
resource '/api/*', headers: :any, methods: [:post, :put, :delete, :get, :options], credentials: false, expose: ['Link', 'X-RateLimit-Reset', 'X-RateLimit-Limit', 'X-RateLimit-Remaining', 'X-Request-Id']
resource '/api/*', headers: :any, methods: [:post, :put, :delete, :get, :patch, :options], credentials: false, expose: ['Link', 'X-RateLimit-Reset', 'X-RateLimit-Limit', 'X-RateLimit-Remaining', 'X-Request-Id']
resource '/oauth/token', headers: :any, methods: [:post], credentials: false
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment