Introduction

Axios module supports Nuxt 2. Nuxt 3 users can use the new isomorphic $fetch API (migration guide).

Nuxt Axios Nuxt Axios

Secure and easy Axios integration for Nuxt.

Features

Automatically set base URL for client & server side
Exposes `setToken` function to `$axios` so we can easily and globally set authentication tokens
Automatically enables `withCredentials` when requesting to base URL
Proxy request headers in SSR
Fetch Style requests
Integrated with Nuxt progress bar
Integrated with Proxy Module
Auto retry requests with axios-retry

Enjoy light and dark mode: 

Axios does not have an official logo yet, we decided to use the actual proposal submitted here: https://github.com/axios/axios/issues/2130

To get started head to Setup section.

Online courses

Edit this page on GitHub Updated at Mon, Sep 19, 2022