Skip to content

Add sample / docs for HSTS for requiring https #271

@JustinBeckwith

Description

@JustinBeckwith

With the move to flex, we lost support for secure: handlers that required https for given routes. We need a sample that shows how to make this work with the HSTS header.

I tried to do this with helmet/hsts, but it doesn't handle the initial redirect / 301 that you need for hsts to actually kick in.

Also, there's currently a bug where health checks on flex don't work over HTTPs :(

To get around both of these... I wrote a npm module that works for us:
https://github.com/JustinBeckwith/yes-https/

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions