allow from other subdomain

This commit is contained in:
Geno 2020-12-09 00:30:30 +01:00
parent 766fba77f9
commit ab67919a21
1 changed files with 10 additions and 8 deletions

View File

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