Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON response error on subdomains - Firefox #584

Open
pimpmypixel opened this issue Jan 29, 2024 · 1 comment
Open

JSON response error on subdomains - Firefox #584

pimpmypixel opened this issue Jan 29, 2024 · 1 comment

Comments

@pimpmypixel
Copy link

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
Copy link
Contributor

RobertBoes commented Jan 29, 2024

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants