Async Data with Nuxt.js (Nuxt 2)
Plans from $25/month

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

🚧 PLEASE NOTE: An updated version of this course is available! see the The Complete Guide to Data Fetching in Nuxt course. This course is outdated!

Global Authentication Headers

In this lesson, we're learning how to create a Nuxt.js plugin. We'll create a plugin that extends the Axios module by passing authentication headers along with every HTTP request.

It might sound overwhelming, but the Nuxt framework has provided us with a very elegant way to extend the framework.