HSTS (and other security headers) for GitHub Pages with custom domains #4444
|
What it says on the tin. Would be nice to be able to send HSTS (and other security headers) for sites on custom domains hosted by GitHub Pages. An immediate failure for the Security category is encountered when using scanners like webpagetest.org, etc. Seems to have something to do with the age of my account. There was an issue for this on the old "github" repo, but it doesn't look like it had been revived as a discussion here since.
Edit: Looks like the other request has vanished. |
Replies: 6 comments 20 replies
|
As a note, a major thread preceding this 1 is isaacs/github#1249. |
|
This is the only thing stopping me moving hosting my tiny blog and project sites from self-hosted to Pages. |
|
This year is the year. |
|
There seems to be a development in this direction (not configurable, at least yet): % fetch -o - -vv https://group.miletic.net/ | & grep Security
<<< Strict-Transport-Security: max-age=31556952 |
|
2024, any update here? Simply add the header to the response 🤷 |
|
As I first saw in https://github.com/orgs/community/discussions/113716#discussioncomment-12344699 and recently confirmed myself, you can contact GitHub Support, and they can manually add the HSTS header to sites of your choosing. |
As I first saw in https://github.com/orgs/community/discussions/113716#discussioncomment-12344699 and recently confirmed myself, you can contact GitHub Support, and they can manually add the HSTS header to sites of your choosing.