Login not working - admin/livewire/update 405 (Method Not Allowed)

Laravel 11 with Filament v3.

I have a single admin panel, with an empty path, because this app will be running on the /admin folder of the root domain.

I've set these Livewire methods to set the correct paths (the issue is also happening without this)
    Livewire::setUpdateRoute(function ($handle) {
        return Route::post('/admin/livewire/update', $handle);
    });

    Livewire::setScriptRoute(function ($handle) {
        return Route::get('/admin/livewire/livewire.js', $handle);
    });


I go to the login screen on admin/login and enter the login credentials it will thrown an error (screenshot attached).

On the console it will show (other screenshot):
POST https://example.com/admin/livewire/update 405 (Method Not Allowed)


I have the correct path configured on the laravel app (APP_URL=https://example.com/admin

Admin panel configuration (relevant section):
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->id('admin')
            ->path('')
            ->login()
            ->profile(EditProfile::class, false)
            ->registration(Register::class)


Can someone please point in the right direction?
I've tried many things, but nothing worked.
Screenshot_2024-09-10_at_22.50.03.png
Solution
Solution was to make a proxy route:
Screenshot_2024-09-13_at_08.33.00.png
Was this page helpful?