Skip to content

Commit 21a9950

Browse files
Remove FLoC header from Response library
* Ignore Laravel 9 security advisory in composer audit * Ignore Laravel security issues during automated tests --------- Co-authored-by: Bryan Nielsen <bryan@packettide.com>
1 parent b56e10a commit 21a9950

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
mysqladmin -u root -proot password ''
5454
5555
- name: Install Laravel
56-
run: composer create-project laravel/laravel=^${{ matrix.laravel }} laravel --prefer-dist
56+
run: composer create-project laravel/laravel=^${{ matrix.laravel }} laravel --prefer-dist --no-audit --no-security-blocking
5757

5858
- name: Add local coilpack
5959
working-directory: laravel

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Removed FLoC header from Response library to mirror [upstream change](https://github.com/ExpressionEngine/ExpressionEngine/pull/2692)
8+
59
## [2.1.0] - 2025-11-06
610

711
### Added

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
"allow-plugins": {
5757
"pestphp/pest-plugin": true,
5858
"phpstan/extension-installer": true
59+
},
60+
"audit": {
61+
"ignore": {
62+
"PKSA-8qx3-n5y5-vvnd": "Laravel 9 is no longer receiving security updates"
63+
}
5964
}
6065
},
6166
"extra": {
@@ -68,4 +73,4 @@
6873
}
6974
}
7075
}
71-
}
76+
}

src/Response.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ public function fromOutput($status = 200, $headers = [])
102102
ee()->config->set_item('compress_output', true);
103103
}
104104

105-
// Send FLOC headers
106-
if (REQ == 'PAGE' && ee()->config->item('enable_floc') !== 'y') {
107-
ee()->output->set_header('Permissions-Policy: interest-cohort=()');
108-
}
109-
110105
// Parse query count
111106
if (REQ != 'CP') {
112107
$output = str_replace(LD.'total_queries'.RD, ee()->db->query_count, $output);

0 commit comments

Comments
 (0)