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

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

🚧 NOTICE: You are watching a Vue.js 2 lesson

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.