inertia-laravel icon indicating copy to clipboard operation
inertia-laravel copied to clipboard

JSON response error on subdomains - Firefox

Open pimpmypixel opened this issue 1 year ago • 1 comments

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 :)

pimpmypixel avatar Jan 29 '24 13:01 pimpmypixel

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/

RobertBoes avatar Jan 29 '24 19:01 RobertBoes