When asynchronous communication is performed using Nuxt.js, always want to perform communication with header attached.

Environment is the initial stage of npx create-nuxt-app.

I checked this article for reference, but I get an error.

It seems to be possible to write this somewhere, but I do not understand.

Thanks for your professor