inertiajs / inertia-laravel

The Laravel adapter for Inertia.js.
https://inertiajs.com
MIT License
2.01k stars 224 forks source link

JSON response error on subdomains - Firefox #584

Open pimpmypixel opened 6 months ago

pimpmypixel commented 6 months ago

There's been a bit of discussion about how Firefox is not handling Inertia responses on subdomains very well. I just updated my node deps and everything seems to be working fine locally and deployed on a subdomain in chromium based browsers. However Firefox not so much. So I just wanted to know if anyone has determined if this is an issue with Inertia + Laravel that has a solution or if the issue lies with Firefox and subdomains. What do I need to know? Thanks :)

RobertBoes commented 6 months ago

Not sure what the issue is, I've been hosting Inertia apps on subdomains since like forever, no issues with Firefox. Though, you can't navigate between multiple domains using Inertia. You'd need to use a normal visit or use a middleware to detect navigation to another domain and then use Inertia::location() to force a full page visit

Even the PingCRM demo runs on a subdomain; https://demo.inertiajs.com/