mirror of https://github.com/yandex/gixy
Added valid domains for origin tests
parent
a0a01d6848
commit
2a93331db2
|
@ -1,3 +1,7 @@
|
|||
# Options: {"domains": ["yandex.ru"]}
|
||||
|
||||
http {
|
||||
if ($http_origin !~ '^https?:\/\/yandex\.ru') {
|
||||
|
||||
}
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
# Options: {"domains": ["webvisor.com", "yandex.com"]}
|
||||
|
||||
if ($http_referer !~ "^https?://([^/]+\.)?yandex\.com/|([^/]+\.)?webvisor\.com/"){
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
}
|
Loading…
Reference in New Issue