All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Updated dependencies
- Updated Orchard Core to 2.1
- Added explicit support for .Net 9.0
- Removed support for .Net 6.0
- Updated dependencies
- Updated Orchard Core to 2.0
- Added explicit support for .Net 8.0
- Removed support for .Net 7.0
- Updated dependencies
- Updated Security Headers to 0.23.0
- Fixed OrchardCore Module
- Only supports .Net 8.0, as OrchardCore 1.8 dropped support for older versions
- Fixed a bug the prevented the
BmFeaturePolicy
from being configured correctly, when the feature policy generation is enabled.
- Updated Orchard Core Module to use Orchard Core Version 1.7.0
- Deprecated
CspReport.AsAttributes
and replaced with.ToDictionary
- Added
ILogger.LogCspReport
extension for easy logging of aCspReport
when usingILogger
- Improved logging format of csp reports in the Orchard module
- Explicit support for .Net 7.0
UnconfigureCacheControl
method to allow to exclude cache control from being configured with the security headers
- Replaced default CSP builder with custom wrapper that allows for directives to be updated
- Simplified CSP for orchard module
- Support for .Net Core 3.1
- Updated dependencies
- Escape csp report values for logger in orchard module endpoint
- Improved handling of microsoft logins
- Renamed
AddAzureLoginCookieWhitelist
toAddMicrosoftLoginCookieWhitelist
- Added CSP form action builder extension
- Renamed
- New orchard core MVC module that enables the security headers for any orchard project
- Includes adjusted CSP that works out of the box for a standard orchard project
- Automatically adds the CSP report controller
- Customized
UseOrchardBmSecurityHeaders
method to configure the headers for orchard projects - Includes
AddAzureLoginCookieWhitelist
that automatically configures the cookie policy for an Azure AD login
- Enabled strict site isolation by enabling the COEP, COOP and CORP headers
- Read https://web.dev/why-coop-coep/ for mor details, on why they are needed and what they do
- Should you encounter problems, you can use overwrite their usage to only report errors via
the
AddCrossOriginXXXPolicy
methods
- The
X-Powered-By
header now gets automatically removed as well
This release contains breaking changes. See README for more details.
- New
CspReportControllerBase
controller base class that can be extended- Replaces the old, built-in CSP controller, as the automatic registration was problematic
- Example on how to use it
AddCspMediaType
-Method to add the CSP media type to anIMvcBuilder
- Built-In CSP-Controller, as the automatic registration was problematic
- You can use the
CspReportControllerBase
instead, see README
- You can use the
- Added XML-Documentation of all public members
- Added symbols packages
- Created the new
Brickmakers.AspSecurityHeaders.Generators
package- Can generate an IIS
web.config
from the security headers config
- Can generate an IIS
- Added package icon
- First public release on GitHub and NuGet.org
CspReportController
: Easily report CSP violations via the built-in controller- Integration Tests
- Support for .Net 6
UseBmApiSecurityHeaders
: Add Configuration method for pure APIs
- Disable HSTS preload by default
- Initial Release