When accessing the /themes/ path under the subdomain sub.example.com, a 403 Forbidden error is encountered. However, the same path works correctly when accessed under the main domain example.com within the /admin/ directory.
The Filament panel is set up to use a subdomain as follows:
class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
....
->domain('sub.example.com')
]);
}
}
How to reproduce the bug
Navigate to sub.example.com/themes/:
Open a web browser and enter sub.example.com/themes/ in the address bar.
Observe the 403 Forbidden error.
Navigate to example.com/admin/themes/:
Open a web browser and enter example.com/admin/themes/ in the address bar.
Observe that the page loads correctly without any errors.
What happened?
When accessing the /themes/ path under the subdomain sub.example.com, a 403 Forbidden error is encountered. However, the same path works correctly when accessed under the main domain example.com within the /admin/ directory.
The Filament panel is set up to use a subdomain as follows:
How to reproduce the bug
Package Version
3.0
Filament Version
3.2
PHP Version
8.2
Laravel Version
11.9
Notes