mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Revert "fix(reverse-proxy): 🐛 include other headers with cors"
This reverts commit 7fd0a72e2c.
This commit is contained in:
parent
7fd0a72e2c
commit
eaa52e14eb
1 changed files with 0 additions and 3 deletions
|
|
@ -15,7 +15,6 @@ if ($request_method = 'OPTIONS') {
|
|||
add_header 'Access-Control-Max-Age' 1728000;
|
||||
add_header 'Content-Type' 'text/plain; charset=utf-8';
|
||||
add_header 'Content-Length' 0;
|
||||
include ../svr-includes/headers.conf;
|
||||
return 204;
|
||||
}
|
||||
if ($request_method = 'POST') {
|
||||
|
|
@ -23,12 +22,10 @@ if ($request_method = 'POST') {
|
|||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
||||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||
include ../svr-includes/headers.conf;
|
||||
}
|
||||
if ($request_method = 'GET') {
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
||||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||
include ../svr-includes/headers.conf;
|
||||
}
|
||||
Loading…
Reference in a new issue