-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue] Error while add header response for .NET Core WebAPI 7 #1431
Comments
@nguyenthanhtien
** Security Headers Middleware Placement: Moved just after UseRouting() and before UseCors(), UseAuthentication(), and UseAuthorization(). This ensures that security headers are applied properly before any authentication or CORS policies are checked. Example middleware correct order
|
My project using .NET Core 7.
My project needs to configure security response headers for .Net core webapi, but when adding the following response header, the api cannot call or the response returns 200 but blank data.
I run on IIS Server, Window Server 2023.
Please help me guide to me fix this issue.
The text was updated successfully, but these errors were encountered: