浏览代码

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 查看文件

"criteria": [], "criteria": [],
"criteriaMustSatisfy": "all", "criteriaMustSatisfy": "all",
"comments": "Require all browsers to connect to your site using HTTPS." "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": [], "behaviors": [],
"criteria": [], "criteria": [],

正在加载...
取消
保存