Skip to content
Snippets Groups Projects
Commit ff496491 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Expose Link headers via CORS

parent 5426f06a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment