projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4064df
)
Add access-control-expose-headers to Nginx default config
author
Niklas Poslovski
<ni.pos@yandex.com>
Tue, 22 May 2018 13:39:29 +0000
(15:39 +0200)
committer
GitHub
<noreply@github.com>
Tue, 22 May 2018 13:39:29 +0000
(15:39 +0200)
installation/pleroma.nginx
patch
|
blob
|
history
diff --git
a/installation/pleroma.nginx
b/installation/pleroma.nginx
index 44905da4961fd8d89ef564d655a673cfc94e8198..b8abdce22a825f07de5d291a1fd51687f444a21b 100644
(file)
--- 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;
}