From ab67919a2165a3a2080aacf09fcb99aca15ed0ec Mon Sep 17 00:00:00 2001 From: Geno Date: Wed, 9 Dec 2020 00:30:30 +0100 Subject: [PATCH] allow from other subdomain --- templates/osp-redirects.conf | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/templates/osp-redirects.conf b/templates/osp-redirects.conf index c4fdb4c..ddb828f 100644 --- a/templates/osp-redirects.conf +++ b/templates/osp-redirects.conf @@ -1,17 +1,19 @@ location /live-adapt { add_header 'Access-Control-Allow-Origin' "*" always; - valid_referers server_names ~.; - if ($invalid_referer) { - return 403; - } + # allow only on subdomain + #valid_referers server_names ~.; + #if ($invalid_referer) { + # return 403; + #} alias {{ osp_edge_http_path }}/live-adapt; } location /live { add_header 'Access-Control-Allow-Origin' "*" always; - valid_referers server_names ~.; - if ($invalid_referer) { - return 403; - } + # allow only on subdomain + #valid_referers server_names ~.; + #if ($invalid_referer) { + # return 403; + #} alias {{osp_edge_http_path}}/live; }