Giter Site home page Giter Site logo

HSTS Warnings about secure HOT 8 CLOSED

unrolled avatar unrolled commented on May 5, 2024
HSTS Warnings

from secure.

Comments (8)

amotmot avatar amotmot commented on May 5, 2024
  • In general, the value of a year is used (31536000)
  • @jpillora, HSTS can be removed by the server sending max-age=0

from secure.

jpillora avatar jpillora commented on May 5, 2024

Though the removal needs to be served from HTTPS, so you wouldn't want to
accidentally enable HSTS with an HTTP only site - even for 1 year instead
of 10.

On Tuesday, April 28, 2015, gellerb [email protected] wrote:


Reply to this email directly or view it on GitHub
#1 (comment).

from secure.

amotmot avatar amotmot commented on May 5, 2024

If one accidentally enabled HSTS on an HTTP-only site nothing would happen. The application isn't listening on port 443 if it's an HTTP-only site and HSTS is only accepted over HTTPS. In other words, the browser ignores the HSTS header over HTTP even if the application provides it.

from secure.

jpillora avatar jpillora commented on May 5, 2024

Ah I thought I'd previously accidentally enabled it one time and was forced to go into chromes net internals to wipe it, my mistake

from secure.

unrolled avatar unrolled commented on May 5, 2024

I'm debating if it's a good idea to remove theStrict-Transport-Security header from HTTP requests to avoid confusion... but then again it's kind of a nice verification the headers are coming through properly when running on a non-secure localhost connection. Or maybe always add it when isDevelopment is true, otherwise only on HTTPS connections.

Thoughts @jpillora @gellerb ?

from secure.

jpillora avatar jpillora commented on May 5, 2024

For verification and to avoid magic behaviour, probably best to leave it as is, the extra few bytes won't hurt

from secure.

amotmot avatar amotmot commented on May 5, 2024

Per the spec at the bottom of section 7.2 [1].
"An HSTS Host MUST NOT include the STS header field in HTTP responses conveyed over non-secure transport."

[1] http://tools.ietf.org/html/rfc6797#section-7.2

from secure.

unrolled avatar unrolled commented on May 5, 2024

Thanks for digging that up @gellerb! I'm going to investigate and see how to best handle this.

from secure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.