Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davetk's avatar
Level 1

Livewire showing weird response

I build a website using laravel livewire, on all my secondary domain it is working fine but when I try to use it my primary domain it show error,

i am using livewire v3, and laravel 11

i tried on all domains, sub-domains for example, example.com, sub.example.com, sub2.sub1.example.com

for all above case app is working as it worked but when i point my another domain that is sub.example.co.uk

it fails to do a update query, which i don't know why is happening,

this only fails when using wire:navigate but when reloading the page data gets reloaded.

livewire.js?id=c4fc8c5d:431 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'csrf') at getCsrfToken (livewire.js?id=c4fc8c5d:431:36) at sendRequest (livewire.js?id=c4fc8c5d:4249:17) at RequestPool.send (livewire.js?id=c4fc8c5d:4041:13) at livewire.js?id=c4fc8c5d:4186:14 at Set.forEach () at CommitBus.createAndSendNewPool (livewire.js?id=c4fc8c5d:4182:13) at livewire.js?id=c4fc8c5d:4158:16 at livewire.js?id=c4fc8c5d:4221:7

any suggestion to fix this will be very helpful, trying to fix this from several days still no relief

0 likes
2 replies
Snapey's avatar

are you remembering to set the correct ALL_URL for each domain?

davetk's avatar
Level 1

@Snapey thanks for responding error is fixed, it was due to server misconfig for that particular domain

Please or to participate in this conversation.