Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions src/Http/Middleware/DisableFloc.php

This file was deleted.

1 change: 0 additions & 1 deletion src/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function boot()
->pushMiddleware(\Statamic\Http\Middleware\PoweredByHeader::class)
->pushMiddleware(\Statamic\Http\Middleware\CheckComposerJsonScripts::class)
->pushMiddleware(\Statamic\Http\Middleware\CheckMultisite::class)
->pushMiddleware(\Statamic\Http\Middleware\DisableFloc::class)
->pushMiddleware(\Statamic\Http\Middleware\StopImpersonating::class);

$this->loadViewsFrom("{$this->root}/resources/views", 'statamic');
Expand Down
17 changes: 0 additions & 17 deletions tests/FrontendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,23 +546,6 @@ public function doesnt_send_powered_by_header_if_disabled()
$this->get('about')->assertHeaderMissing('X-Powered-By', 'Statamic');
}

#[Test]
public function disables_floc_through_header_by_default()
{
$this->createPage('about');

$this->get('about')->assertHeader('Permissions-Policy', 'interest-cohort=()');
}

#[Test]
public function doesnt_disable_floc_through_header_if_disabled()
{
config(['statamic.system.disable_floc' => false]);
$this->createPage('about');

$this->get('about')->assertHeaderMissing('Permissions-Policy', 'interest-cohort=()');
}

#[Test]
public function headers_can_be_set_in_content()
{
Expand Down