This commit is contained in:
zino
2023-12-10 14:28:49 +01:00
parent 3a80e08fa3
commit fa773d78d5

View File

@@ -1,9 +1,10 @@
# Dynamically set CORS headers based on the request origin.
# Needed for legacy wordoress migrations
map $http_origin $allow_origin { map $http_origin $allow_origin {
~^https://(.*\.)?zinomedia\.de$ $http_origin; ~^https://(.*\.)?zinomedia\.de$ $http_origin;
default ""; default "";
} }
server { server {
listen 443 ssl; listen 443 ssl;
listen [::]:443 ssl; listen [::]:443 ssl;
@@ -27,7 +28,7 @@ server {
client_max_body_size 0; client_max_body_size 0;
# Wordpress migration support # Dynamically set CORS headers based on the request origin.
add_header 'Access-Control-Allow-Origin' $allow_origin; add_header 'Access-Control-Allow-Origin' $allow_origin;
location / { location / {