Hi,
You can remove the
UseIISIntegrationWhen hosting in IIS, IIS passes custom headers to the asp.net application which will be missing when hiting the asp.net core process directly. When using IIS to reverse proxy asp.net core, you should only access it via IIS.
https://learn.microsoft.com/en-us/archive/msdn-technet-forums/c4fda121-5459-4274-81bd-94bfe9379c37
Hi liangshiwei, Thanks for the help but I cannot find "UseIISIntegration" anywhere in my code. So is there any other setting which might be causing this issue because i can not perform any action on deployed application. It always says unauthorized. Also for your reference i am deploying it in azure web app dotnet 8 using github actions.