Added valid domains for origin tests

pull/3/head
Andrew Krasichkov 2017-04-03 23:30:18 +03:00
parent a0a01d6848
commit 2a93331db2
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
# Options: {"domains": ["yandex.ru"]}
http {
if ($http_origin !~ '^https?:\/\/yandex\.ru') {
}
}

View File

@ -1,3 +1,5 @@
# Options: {"domains": ["webvisor.com", "yandex.com"]}
if ($http_referer !~ "^https?://([^/]+\.)?yandex\.com/|([^/]+\.)?webvisor\.com/"){
add_header X-Frame-Options SAMEORIGIN;
}