Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1501

Duplicate Strict-Transport-Security in web site

$
0
0

I was asked by our compliance team at work to add 'includeSubDomains' to the Strict-Transport-Security header for our site. So I added the entry below (top one) to our .NET site's web config. But when I did that, I see another Strict-Transport-Security entry (2nd one below) with only the max-age and a bigger value.

Strict-Transport-Security:max-age=31536000; includeSubDomainsStrict-Transport-Security:max-age=157680000

My questions are:

  1. Which one would the browsers obey? (I'm hoping the one with the includeSubDomains)
  2. Is there a way to remove the second one and how is it set? My site is hosted in IIS 10 and I checked in the HTTP headers configuration and don't see where the 2nd one is set, only the top one is set there.

I googled around for dup headers to see what they say about this but can't find anything on my particular situation or how to remove it.


Viewing all articles
Browse latest Browse all 1501

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>