Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I put an HSTS header on a meta tag?

Tags:

html

http

firefox

So I'm using github pages and there's currently no way to force HTTPS with it, so I had the "bright" idea to put an HSTS header on a meta tag. So, I added this to the page:

<meta http-equiv="Strict-Transport-Security" content="max-age=31536000" />

Aaand it didn't work. Why does it not work?! D:

My browser is Firefox Nightly.

like image 854
SoniEx2 Avatar asked Nov 04 '15 23:11

SoniEx2


1 Answers

According to RFC 6797 User Agents are not to heed the HSTS attribute settings on elements.

like image 117
MrWerbenjagermanjensen Avatar answered Oct 20 '22 03:10

MrWerbenjagermanjensen