fix(reverse-proxy): 🐛🚧 temp override Last-Modified header for a full Cloudflare purge for CORS

This commit is contained in:
Collin M. Barrett 2021-01-23 15:25:53 -06:00
parent 6e20f08d4e
commit e18b2902c5

View file

@ -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';