CSP report endpoint problem in asp.net core
I’m working on an ASP.NET Core application where I need to handle Content Security Policy (CSP) violation reports. I have set up a CSP header to report violations to a specific endpoint and created a corresponding controller to handle the reports. However, I’m encountering issues with deserializing the incoming JSON payload. Despite setting the Content-Type to application/csp-report, the request object in my controller action is null, and the properties of my model are not being populated correctly.