How to disable Chrome HSTS permanently for a subdomain

前端 未结 3 2063
情书的邮戳
情书的邮戳 2021-02-01 06:27

I have following setup:

The application https://app.domain.de is our production environment and is automatically forwarded to use HTTPS. All works fine here

3条回答
  •  天涯浪人
    2021-02-01 06:46

    On the main domain, you can remove the includesubdomains option of your HSTS header, so it will not redirect the sub domain.

    However, this is not the most secure solution. To be effective, it's better to set HSTS+includesubdomains on all your domains and subdomains (or an attacker car fake the domain "http://secure.yourdomain.com" for example).

    So the most secure solution is to use a self-signed certificate (or a real one) for your dev domains and import it before in your browsers.

提交回复
热议问题