logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: bc955eaf61ffb2fd3915067da2a5674ea30df226
parent: 2d99c962df492b498819b3d0d64e53a4f3fcede5
Author: Shin Adachi <shn@glucose.jp>
Date:   Tue, 25 Apr 2017 03:19:51 +0900

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


Diffstat:

Mconfig/application.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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