Skip to content

Commit b8e8ef4

Browse files
committed
refactor: set max_header_size to the Apache default of 8190
1 parent 9bc6481 commit b8e8ef4

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1515

1616
### Fixed
1717

18+
## [1.0.4] - 2024-08-08
19+
20+
### Changed
21+
22+
- Changed max_header_size from 8000 to the Apache default of 8190.
23+
1824
## [1.0.3] - 2024-08-07
1925

2026
### Added
@@ -35,6 +41,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3541

3642
## [1.0.0] - 2024-08-02
3743

44+
[1.0.4]: https://github.com/basecom/magento2-csp-split-header/compare/v1.0.3...v1.0.4
3845
[1.0.3]: https://github.com/basecom/magento2-csp-split-header/compare/v1.0.2...v1.0.3
3946
[1.0.2]: https://github.com/basecom/magento2-csp-split-header/compare/v1.0.1...v1.0.2
4047
[1.0.1]: https://github.com/basecom/magento2-csp-split-header/compare/v1.0.0...v1.0.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ no longer exceed the maximum permitted length of the web server.
5050
| Config | Default Value | Description |
5151
|-------------------------------------------------------------|----------------|------------------------------------------------------------|
5252
| `basecom_csp_split_header/settings/header_splitting_enable` | 0 _(disabled)_ | enables (1) / disables (0) the splitting of the CSP header |
53-
| `basecom_csp_split_header/settings/max_header_size` | 8000 | maximum allowed header size |
53+
| `basecom_csp_split_header/settings/max_header_size` | 8190 | maximum allowed header field size |
5454

5555
These values can be updated in the system configuration under `Basecom -> Content Security Policy -> Enable`.
5656

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "basecom/magento2-csp-split-header",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Magento 2 module to split oversized CSP headers into multiple headers.",
55
"type": "magento2-module",
66
"license": [

etc/config.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?xml version="1.0"?>
2-
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
34
<default>
45
<basecom_csp_split_header>
56
<settings>
67
<header_splitting_enable>0</header_splitting_enable>
7-
<max_header_size>8000</max_header_size>
8+
<max_header_size>8190</max_header_size>
89
</settings>
910
</basecom_csp_split_header>
1011
</default>

0 commit comments

Comments
 (0)