diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-15 23:26:17 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-15 23:26:17 +0100 |
commit | ff4964913077530d7a6696b6ffe0d4d51fafdc3d (patch) | |
tree | 1a52771794467489d238d6e39ebcaa9e930811bf /config/application.rb | |
parent | 5426f06ac29b9ef4d302d3f2d13b315dcf89e079 (diff) |
Expose Link headers via CORS
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index d44835957..8da5ade3c 100644 --- 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 |