Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
nuxt-communityPublic archive

Repository files navigation

Note

This repository is archived. @nuxtjs/axios was built for Nuxt 2, which reached end of life on June 30, 2024. In Nuxt 3+, use the built-in $fetch.

@nuxtjs/axios

@nuxtjs/axios

npm version npm downloads Github Actions CI Codecov License

Secure and easy Axios integration for Nuxt 2.

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

📖  Read more

Contributing

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

📑 License

MIT License

Copyright (c) Nuxt Community

Releases

Packages

Used by

Contributors

Languages