Lib.AspNetCore.Security
Lib.AspNetCore.Security copied to clipboard
Feedback
This issue is for general feedback regarding this project.
Looking great so far!
And it would be even better to have the ability to extend the behavior of IsCspReportRequest method in order to cut some requests earlier (before they get deserialized by ContentSecurityPolicyViolationReportJsonDeserializer.DeserializeAsync)
https://github.com/tpeczek/Lib.AspNetCore.Security/blob/6d6c11eee5f105e341924c04440b4669b18a31f7/Lib.AspNetCore.Security/ContentSecurityPolicyReportingMiddleware.cs#L38-L44
Hi @Den-dp,
Can you elaborate a little bit more on what would you had in mind?
@tpeczek sure! I'm thinking of something like that:
.MapContentSecurityPolicyReporting(ReportRoute, (context) => context.User.Identity.IsAuthenticated);
And thanks for the quick feedback! 🚀
@Den-dp Thanks for the sample. I think it makes sense, let me think about it.