logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: ff4964913077530d7a6696b6ffe0d4d51fafdc3d
parent: 5426f06ac29b9ef4d302d3f2d13b315dcf89e079
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Wed, 15 Feb 2017 23:26:17 +0100

Expose Link headers via CORS

Diffstat:

Mconfig/application.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/application.rb b/config/application.rb @@ -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