m
This commit is contained in:
@@ -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 / {
|
||||||
|
|||||||
Reference in New Issue
Block a user