Skip to content

Should the includeSubDomains setting default to false? #7

@frdrks

Description

@frdrks

Hi!

I encountered a sneaky issue today, due to theincludeSubDomain setting. I have set up a simple page, where I used your yes-https package. It mostly works like a charm, but this page is served on both a "www" subdomain and on the root domain – causing the HSTS policy to be enforced on absolutely all my subdomains. This is all fine and dandy if everything points to your apps and services, where you have set up TLS/HTTPS. On the other hand, if some of these are forwarding or redirecting to your mail provider etc. – things get more interesting.

So my question/suggestion is: Should the includeSubDomain setting default to false? This issue might be caused by a suboptimal setup of my web app and domain. But I suspect this is not an uncommon scenario around the web. And I had to use quite a few brain cycles to find the culprit. So in my mind it make more sense to explicitly ask to enforce the HSTS policy on all sub domains.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions