- commit
- 967e357eb133873b68e9a83d6b1ad610b426080d
- parent
- dbff2169258b45d3a0f7b7eaf93c2324eec8eae1
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-10-15 11:11
nginx: fix allowed headers
Diffstat
| M | via.nginx | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/via.nginx b/via.nginx
@@ -9,7 +9,7 @@ server {
9 9 if ($request_method = 'OPTIONS') {
10 10 add_header 'Access-Control-Allow-Origin' '*';
11 11 add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, HEAD, OPTIONS';
12 -1 add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
-1 12 add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Last-Event-ID';
13 13 add_header 'Access-Control-Max-Age' 1728000;
14 14 add_header 'Content-Type' 'text/plain; charset=utf-8';
15 15 add_header 'Content-Length' 0;
@@ -17,7 +17,7 @@ server {
17 17 }
18 18 add_header 'Access-Control-Allow-Origin' '*';
19 19 add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, HEAD, OPTIONS';
20 -1 add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
-1 20 add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Last-Event-ID';
21 21
22 22 add_header 'Link' '<https://github.com/xi/via>; rel="help"';
23 23 proxy_pass http://localhost:8001;