mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(reverse-proxy): 🐛🚧 temp override Last-Modified header for a full Cloudflare purge for CORS
This commit is contained in:
parent
6e20f08d4e
commit
e18b2902c5
1 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,11 @@
|
|||
#
|
||||
# Wide-open CORS config for nginx
|
||||
#
|
||||
|
||||
# TEMP: override Last-Modified for Cloudflare
|
||||
# https://support.cloudflare.com/hc/en-us/articles/200308847-Using-cross-origin-resource-sharing-CORS-with-Cloudflare
|
||||
add_header Last-Modified $date_gmt;
|
||||
|
||||
if ($request_method = 'OPTIONS') {
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
|
|
|
|||
Loading…
Reference in a new issue