Browse Source

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

closed-social-v3
Shin Adachi 7 years ago
committed by Eugen
parent
commit
bc955eaf61
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/application.rb

+ 1
- 1
config/application.rb View File

@ -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…
Cancel
Save