summaryrefslogtreecommitdiff
path: root/installation
diff options
context:
space:
mode:
authorNiklas Poslovski <ni.pos@yandex.com>2018-05-22 15:39:29 +0200
committerGitHub <noreply@github.com>2018-05-22 15:39:29 +0200
commitd81a4e92809d6dc7d3d3fb4ce85e5f94c1e23f0a (patch)
treeb69676bfbaebee1e11d6c3628af0a53766f3bd7e /installation
parentb4064dfe30b792f5d6d36b72c7cd530afb1c667a (diff)
downloadpleroma-d81a4e92809d6dc7d3d3fb4ce85e5f94c1e23f0a.tar.gz
pleroma-d81a4e92809d6dc7d3d3fb4ce85e5f94c1e23f0a.zip
Add access-control-expose-headers to Nginx default config
Diffstat (limited to 'installation')
-rw-r--r--installation/pleroma.nginx1
1 files changed, 1 insertions, 0 deletions
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx
index 44905da49..b8abdce22 100644
--- a/installation/pleroma.nginx
+++ b/installation/pleroma.nginx
@@ -54,6 +54,7 @@ server {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'POST, GET, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type' always;
+ add_header 'Access-Control-Expose-Headers' 'Link, X-RateLimit-Reset, X-RateLimit-Limit, X-RateLimit-Remaining, X-Request-Id' always;
if ($request_method = OPTIONS) {
return 204;
}