Home>
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.
https://qiita.com/shts/items/e15ab37dff40df73048c
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
-
Answer # 1
Related articles
- nuxtjs - i want to always attach tokens to axios with nuxt, but it doesn't work
- mock - if you fire a method that communicates with axios with test using jest, it will be undefined
- http - i want to get the image url using nuxt + axios and display the image
- javascript - bug (?) when using axios configuration file as a plugin in nuxt
- in nuxtjs using typescript, when i try to use a part of the content acquired by ajax, i get a `does not exist on type'{}'` error
- want to standardize header, footer, and side menu using javascript
- vuejs - unable to get api from axios in nuxtjs vuex store
- javascript - i want to display it on the browser using axios and vuejs from the api for corona virus infections
- vuejs - cannot set request header in axios
- how to get in script tag of vue file of/pages/when using nuxtjs and nuxt-i18n
- javascript - can't get video time using video tag in vuejs (nuxtjs)
- javascript - i want to make a modal using vue-js-modal in nuxtjs but it doesn't work with "cannot read property 'open' of u
- vuejs - [nuxtjs] about using other js libraries
- javascript - nuxtjs: i want to get json placeholder data with axios
- when using nuxtjs + i18n, i want to use t method for fref of a tag instead of nuxt-link
Trends
Looks like using a Nuxt plugin
Put the contents into the plugin folder and add it to the nuxt config plugins