#Help working with subdomains.

1 messages · Page 1 of 1 (latest)

plush prawn
#

I need help that I can work with subdomains. I do not understand the reason why this should not work. js methods: { submit() { this.form.post('/login') } } My route is client.authentication.login.store and i use https://github.com/tighten/ziggy this is a example for ziggy ```js
methods: {
submit() {
this.form.post(route('client.authentication.login.store'))
}
}

GitHub

Use your Laravel named routes in JavaScript. Contribute to tighten/ziggy development by creating an account on GitHub.

vestal shadow
#

Inertia doesn't work across (sub)domains, as it uses the history api. You'd have to perform a normal visit.

plush prawn
#

Like this? http://client.example.org/login

vestal shadow
#

Idk? You can't use Inertia.get() or form.post() for any other domain than the current

plush prawn
#

Hmm, what other ways are there?

vestal shadow
#

Well you can't use Inertia for cross-domain communication. You'd have to use normal anchor tags, or window.location, or just a different way to send XHR requests