Where can I configure HSTS for Azure resource group? Network Mapper scan job is throwing error - 'HSTS not configured in HTTPS Server' - for endpoint.

Rochishaa Anhal 0 Reputation points
2024-03-28T08:06:56.58+00:00

Open cmd/terminal and run the following command : nmap -Pn -p443 --script http-security-headers 'endpoint'

Result : PORT STATE SERVICE 443/tcp open https | http-security-headers: | Strict_Transport_Security: |_ HSTS not configured in HTTPS Server

HSTS not configured in HTTPS Server - UNSAFE

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,142 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 22,856 Reputation points Microsoft Employee
    2024-03-28T16:39:09.02+00:00

    @Rochishaa Anhal

    Thank you for reaching out.The HTTP Strict-Transport-Security response header (often abbreviated as HSTS) informs browsers that the site should only be accessed using HTTPS, and that any future attempts to access it using HTTP should automatically be converted to HTTPS.

    In Azure such functionality is offered for Azure Front Door as documented here and Azure Application Gateway as documented here as these products deal HTTP servers. Can you please let us know the Azure service for which you want to enable HSTS?

    Thanks.

    0 comments No comments