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

th-downstream
Shin Adachi 8 years ago committed by Eugen
parent 0c77188d59
commit 0957461e7b

@ -64,7 +64,7 @@ module Mastodon
allow do allow do
origins '*' 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 resource '/oauth/token', headers: :any, methods: [:post], credentials: false
end end
end end

Loading…
Cancel
Save