Vodyanoï
Vodyanoï
FFilament
Created by Vodyanoï on 8/3/2024 in #❓┊help
403 Forbidden in production
Hey ! I'm trying to deploy to production, site is working well but filament admin panel shows 403 forbidden after login I've implemented the filament contract (returns true for testing purpose)
use Filament\Models\Contracts\FilamentUser;
use Filament\Panel;
// other imports...
class User extends Authenticatable implements MustVerifyEmail, FilamentUser {
// not using filament trait
// other methods...
public function canAccessPanel(Panel $panel): bool
{
return true;
}
}
use Filament\Models\Contracts\FilamentUser;
use Filament\Panel;
// other imports...
class User extends Authenticatable implements MustVerifyEmail, FilamentUser {
// not using filament trait
// other methods...
public function canAccessPanel(Panel $panel): bool
{
return true;
}
}
(Without this implementation I get the 403 forbidden before being able to try login (as intended by Filament)) I can access the filament login page, but once I'm logged in my newly created filament user using:
php artisan make:filament-user
php artisan make:filament-user
I get 403 Forbidden and need to clear browser cache to be able to attempt new login If email/password is wrong I get the normal error and can't login Everything works fine in local env Using apache2 proxypass to docker container running my app Any clues ? Thank you.
17 replies