diff options
author | lain <lain@soykaf.club> | 2018-05-26 16:00:59 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-05-26 16:00:59 +0200 |
commit | 4b3ec5351466f8615b32e62cc4e6215f8a80b105 (patch) | |
tree | e46842eac5d8255858a113f71bdf42bfd75e4436 /installation/pleroma.nginx | |
parent | 4fd9df100f61dfe4731934eca86500472d866f60 (diff) | |
parent | 6138b297836f459e4fe5d21dfed30ddd9397b6d4 (diff) | |
download | pleroma-4b3ec5351466f8615b32e62cc4e6215f8a80b105.tar.gz |
Merge branch 'develop' into csaurus/pleroma-feature/mstdn-direct-api
Diffstat (limited to 'installation/pleroma.nginx')
-rw-r--r-- | installation/pleroma.nginx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 44905da49..b6ca30cc9 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -52,8 +52,9 @@ server { # if you do not want remote frontends to be able to access your Pleroma backend # server, remove these lines. 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-Allow-Methods' 'POST, PUT, DELETE, GET, PATCH, OPTIONS' always; + add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Idempotency-Key' 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; } |