allow from other subdomain
This commit is contained in:
parent
766fba77f9
commit
ab67919a21
|
@ -1,17 +1,19 @@
|
||||||
location /live-adapt {
|
location /live-adapt {
|
||||||
add_header 'Access-Control-Allow-Origin' "*" always;
|
add_header 'Access-Control-Allow-Origin' "*" always;
|
||||||
valid_referers server_names ~.;
|
# allow only on subdomain
|
||||||
if ($invalid_referer) {
|
#valid_referers server_names ~.;
|
||||||
return 403;
|
#if ($invalid_referer) {
|
||||||
}
|
# return 403;
|
||||||
|
#}
|
||||||
alias {{ osp_edge_http_path }}/live-adapt;
|
alias {{ osp_edge_http_path }}/live-adapt;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /live {
|
location /live {
|
||||||
add_header 'Access-Control-Allow-Origin' "*" always;
|
add_header 'Access-Control-Allow-Origin' "*" always;
|
||||||
valid_referers server_names ~.;
|
# allow only on subdomain
|
||||||
if ($invalid_referer) {
|
#valid_referers server_names ~.;
|
||||||
return 403;
|
#if ($invalid_referer) {
|
||||||
}
|
# return 403;
|
||||||
|
#}
|
||||||
alias {{osp_edge_http_path}}/live;
|
alias {{osp_edge_http_path}}/live;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue