microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.25k stars 2.2k forks source link

[Issue] Error while add header response for .NET Core WebAPI 7 #1431

Open nguyenthanhtien opened 4 months ago

nguyenthanhtien commented 4 months ago

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.

image