juunas11 / aspnetcore-security-headers

Middleware for adding security headers to an ASP.NET Core application.
MIT License
264 stars 42 forks source link

Add Antiforgery Token to report violations post. #63

Open malylemire1 opened 2 years ago

malylemire1 commented 2 years ago

Add Antiforgery Token to report violations post method.

juunas11 commented 1 year ago

As far as I know, you cannot affect the violation report requests enough to include a CSRF token. Cookies should go with the request I think.