[enter image description here](https://i.stack.imgur.com/6b1kY.jpg)
I'm in the process of developing an application intended for an intranet environment. In my program.cs
file, I've configured CORS handling, as evident from the provided images. Whenever I initiate a GET
request to one of my controllers, it works. But when I attempt to execute a POST
request. I'm get the following error:
Blocked by CORS policy: Response to preflight request doesn't pass access control check. No 'Access-Control-Allow-Origin' header is present.
I believe the problem is coming from employing Windows authentication for user identification. I'm pondering whether disabling of anonymous authentication might be the underlying cause of this issue.
Could this configuration be contributing to the problem? Moreover, I'm keen to understand if these CORS challenges will persist even when the application is deployed within the intranet environment.
Any insights into resolving these CORS-related hurdles and ensuring a seamless functioning of my application, while retaining Windows Authentication, would be greatly appreciated. Additionally, I'm curious about the potential impact on CORS when deploying the app within the intranet.
Thank you for your assistance in advance.