@maq32 I don't know if it's a similar scenario as the issue I had recently when I first tried using Inertia.. but have a look at https://laracasts.com/discuss/channels/vite/laravel-10-inertia-vite-behind-nginx-proxy-in-docker-container-typeerror
I don't know how you're enforcing HTTPS in your Service Provider, but I used the way I had always done for years which works fine for standard Laravel + Blade (and Livewire) applications, but the moment I introduced Inertia, it wasn't enough.