about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorShin Adachi <shn@glucose.jp>2017-04-25 03:19:51 +0900
committerEugen <eugen@zeonfederated.com>2017-04-24 20:19:51 +0200
commitbc955eaf61ffb2fd3915067da2a5674ea30df226 (patch)
tree571ddb3215f7b677eb1aea0eec5ae22e6bc981d7 /config
parent2d99c962df492b498819b3d0d64e53a4f3fcede5 (diff)
add `patch` method support to CORS (#2408)
Diffstat (limited to 'config')
-rw-r--r--config/application.rb2
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