laravel-shopify: Laravel Livewire V3 addHeaders Error

Hi everyone,

I want to develop an application with Laravel-livewire v3 but the following code is not working.

When I checked, there is no addHeaders method in v3.

How can I solve this?

inside the (‘shopify-app::partials.token_handler’) file

if (window.Livewire) {
    // livewire
    window.livewire.addHeaders({
        'Authorization': bearer,
        'content-type': 'application/json',
        'X-Requested-With': 'XMLHttpRequest'
    });
}

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘addHeaders’)

@Kyon147

About this issue

  • Original URL
  • State: open
  • Created 6 months ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

If I have some time this week one evening I’ll try and spin up a quick test and see if I can see the issue