diff options
author | Shin Adachi <shn@glucose.jp> | 2017-04-25 03:19:51 +0900 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-24 20:19:51 +0200 |
commit | bc955eaf61ffb2fd3915067da2a5674ea30df226 (patch) | |
tree | 571ddb3215f7b677eb1aea0eec5ae22e6bc981d7 /config | |
parent | 2d99c962df492b498819b3d0d64e53a4f3fcede5 (diff) |
add `patch` method support to CORS (#2408)
Diffstat (limited to 'config')
-rw-r--r-- | config/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index 3db8558de..dddc3e4fb 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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 |