Add access-control-expose-headers to Nginx default config
authorNiklas Poslovski <ni.pos@yandex.com>
Tue, 22 May 2018 13:39:29 +0000 (15:39 +0200)
committerGitHub <noreply@github.com>
Tue, 22 May 2018 13:39:29 +0000 (15:39 +0200)
installation/pleroma.nginx

index 44905da4961fd8d89ef564d655a673cfc94e8198..b8abdce22a825f07de5d291a1fd51687f444a21b 100644 (file)
@@ -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;
         }