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

About

Universal HTTP Module for Nuxt.js

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

230 stars

Watchers

3 watching

Forks

Repository files navigation

Note

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

@nuxt/http

Nuxt HTTP

npm version npm downloads Github Actions CI Codecov License Standard JS

HTTP module for Nuxt with a universal way to make HTTP requests to the API backend.

Nuxt 3

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

Features

  • The fluent ky API has been extended with enhancements and shortcuts
  • Highly customizable options support for BaseURL
  • Automatically proxy cookies and headers when making requests from server side
  • Best practices to avoid token sharing when making server side requests
  • Easy proxy support to avoid CORS problems and making deployment easier

📖  Read more

Development

  1. Clone this repository
  2. Install dependencies using yarn install
  3. Start development server using yarn dev
  4. Then go for instance to http://localhost:3000/mounted

📖 Contribute to the documentation

  1. Go into the docs folder
  2. Install dependencies using yarn install
  3. Start development server using yarn dev

📑 License

MIT License

Copyright (c) Nuxt.js Team

About

Universal HTTP Module for Nuxt.js

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

230 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages