andrewlock / NetEscapades.AspNetCore.SecurityHeaders

Small package to allow adding security headers to ASP.NET Core websites
MIT License
704 stars 73 forks source link

Make adding directives to the CSP idempotent to avoid duplicates #169

Closed andrewlock closed 3 months ago

andrewlock commented 3 months ago

This is a breaking change in the API of CspDirectiveBuilder.Sources, FeaturePolicyDirectiveBuilder.Sources, and PermissionsPolicyDirectiveBuilder.Sources to make them idempotent

Fixes #147