Преглед на файлове

Added HTTPS redirect i property rules

main
kusum преди 10 месеца
родител
ревизия
d1f51414ce
променени са 1 файла, в които са добавени 29 реда и са изтрити 1 реда
  1. 29
    1
      GSAutomation/cpr-lab/property-snippets/Strengthen_security.json

+ 29
- 1
GSAutomation/cpr-lab/property-snippets/Strengthen_security.json Целия файл

@@ -161,7 +161,35 @@
"criteria": [],
"criteriaMustSatisfy": "all",
"comments": "Require all browsers to connect to your site using HTTPS."
}
},
{
"name": "Redirect to HTTPS",
"children": [],
"behaviors": [
{
"name": "redirect",
"options": {
"destinationHostname": "SAME_AS_REQUEST",
"destinationPath": "SAME_AS_REQUEST",
"destinationProtocol": "HTTPS",
"mobileDefaultChoice": "DEFAULT",
"queryString": "APPEND",
"responseCode": 301
}
}
],
"comments": "Redirect to the same URL on HTTPS protocol, issuing a 301 response code",
"criteria": [
{
"name": "requestProtocol",
"options": {
"value": "HTTP"
}
}
],
"options": {},
"criteriaMustSatisfy": "all"
}
],
"behaviors": [],
"criteria": [],

Loading…
Отказ
Запис