mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-26 10:36:34 +00:00
Expose Link headers via CORS
This commit is contained in:
parent
5426f06ac2
commit
ff49649130
|
@ -34,7 +34,7 @@ module Mastodon
|
|||
allow do
|
||||
origins '*'
|
||||
|
||||
resource '/api/*', headers: :any, methods: [:post, :put, :delete, :get, :options], credentials: false
|
||||
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 '/oauth/token', headers: :any, methods: [:post], credentials: false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue