mirror of
https://github.com/whippyshou/mastodon
synced 2024-11-24 23:26:31 +09:00
add patch
method support to CORS (#2408)
This commit is contained in:
parent
2d99c962df
commit
bc955eaf61
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user