Closed (fixed)
Project:
HTTP Strict Transport Security
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2015 at 21:22 UTC
Updated:
18 Jul 2019 at 14:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gnulux commentedYes, I second that — that would be great. But, perhaps for Drupal 8, since the D7 module isn't minimally maintained.
I see that in WordPress, it only takes one line to add in functions.php:
header( 'Strict-Transport-Security: max-age=10886400; includeSubDomains; preload' );But of course, I'm aware that Drupal and WP are very different.
And it ought to be optional perhaps, since, according to what I've read, if your HTTPS connexion runs into problems, your website is stuck to HTTPS through the preload enlistment and so may become unreachable (endless loop).
And getting into that preload list seems to take some months anyway.
Cheers
Comment #3
minoroffense commentedComment #4
mfbComment #6
mfbHmm this patch was tested on the wrong branch for some reason.
Comment #7
minoroffense commentedMight be because the issue was first created on the 7.x branch. Let me try to create a new issue on 8.x and I'll upload your patch.
Comment #8
minoroffense commentedFigured it out. Didn't have tests enabled for 8.x
Comment #9
Anonymous (not verified) commentedTested (drupal 8) with and without preload flag with the help of https://en.internet.nl/.
Results are ok!
Comment #10
dsnopekWorks in my testing too!
Comment #12
minoroffense commentedApplied to 8. Needs backport now.
Thanks everyone.
Comment #13
mfbComment #14
mfbtagging this fixed as there is D7 issue @ #2916949: Add preload flag (D7)
Comment #16
milindk commentedThis patch working fine. tested with https://hstspreload.org/.