HSTS Missing from HTTPS Server fix for SharePoint web application

adil 1,226 Reputation points
2024-07-10T14:44:15.3366667+00:00

Hi,

I found below finding when did Security scan of SharePoint Internet facing site

HSTS Missing from HTTPS Server:

1.How to enable HSTS for SharePoint site and if i enable is any impact to SharePoint site

2.is it can be a configuration change web application config file?

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,299 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,326 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,902 questions
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 33,716 Reputation points Microsoft Vendor
    2024-07-11T02:21:36.2833333+00:00

    Hi @adil

    You can enable it via the web.config in IIS as shown in How to enable HTTP Strict Transport Security (HSTS) in IIS7+

    Once the browser is aware that a domain has enabled HSTS, it:

    Always use a https:// connection, including when clicking on an http:// link or after typing a URL into the address bar without specifying a protocol.

    Removes the ability for users to click through warnings (for example, expired, or invalid certificates, name mismatches, etc.).

    There are some scenarios (for example, user has a new computer, new profile, new browser or has cleared browser data and settings) where a user is vulnerable for a short period of time because they're visiting the site for the first time without HSTS being enforced. To address these scenarios, the Chromium project maintains an HSTS Preload List (which is also used by other browsers like Microsoft Edge and Mozilla Firefox). The Preload List enforces HSTS even when visiting a site for the first time.

    You can submit your domain to the HSTS list. The webserver must also send the preload directive as part of the Strict-Transport-Security header to signal that HSTS preloading should be performed by the browser.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful