Expose Link headers via CORS

master
Eugen Rochko 8 years ago
parent 5426f06ac2
commit ff49649130
  1. 2
      config/application.rb

@ -34,7 +34,7 @@ module Mastodon
allow do allow do
origins '*' 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 resource '/oauth/token', headers: :any, methods: [:post], credentials: false
end end
end end

Loading…
Cancel
Save