gearheads
/
mastodon
Archived
2
0
Fork 0

Expose Link headers via CORS

gh/stable
Eugen Rochko 2017-02-15 23:26:17 +01:00
parent 5426f06ac2
commit ff49649130
1 changed files with 1 additions and 1 deletions

View File

@ -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