© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•11mo ago
Raki

HSTS strict transport security header is present in web api response but missing in web response.

I have site where i need to improve the security which is a .net core 6 application.

The response header for the site abc.com and for the api is attached.

response header for abc.com doesn't have the strict transport security header whereas the api response has the header.

I have added both addhsts and usehsts in my program.cs.

The frontend is vue and the backend is .net core 6.

How to fix this
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Web API Controller Response JObject
C#CC# / help
2y ago
✅ Web API format for error response
C#CC# / help
2y ago
❔ ✅ Writing to response body is slow in .net core 7 web api?
C#CC# / help
3y ago
✅ Token present on Get but missing on Post using Identity
C#CC# / help
4y ago