How do I enable HSTS on iis10?
Open IIS Manager. Click the IIS 10.0 web server name. Click on HSTS. Verify “Enable” is checked, and Max-Age is set to something other than “0”.
How to disable HSTS in IIS?
You could disable it from applicationhost. config->sites/site/HSTS. Set it to false.