Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxtjs/axios

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/axios - npm Package Compare versions

Comparing version 4.3.1 to 4.4.0

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="4.4.0"></a>
# [4.4.0](https://github.com/nuxt-community/axios-module/compare/v4.3.1...v4.4.0) (2017-09-30)
### Features
* **proxyHeader:** proxyHeadersIgnore option ([7c13655](https://github.com/nuxt-community/axios-module/commit/7c13655))
<a name="4.3.1"></a>

@@ -7,0 +17,0 @@ ## [4.3.1](https://github.com/nuxt-community/axios-module/compare/v4.3.0...v4.3.1) (2017-09-28)

1

lib/index.js

@@ -20,2 +20,3 @@ const chalk = require('chalk')

proxyHeaders: true,
proxyHeadersIgnore: ['accept', 'host'],
debug: false,

@@ -22,0 +23,0 @@ redirectError: {}

5

lib/plugin.template.js

@@ -125,5 +125,4 @@ import Axios from 'axios'

headers.common = (req && req.headers) ? Object.assign({}, req.headers) : {}
delete headers.common.host
delete headers.common.accept
<% } %>
<% for (let h of options.proxyHeadersIgnore) { %>delete headers.common['<%= h %>']
<% } %><% } %>

@@ -130,0 +129,0 @@ // Create new axios instance

{
"name": "@nuxtjs/axios",
"version": "4.3.1",
"version": "4.4.0",
"description": "Secure and easy axios integration with Nuxt.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -46,2 +46,3 @@ <p align="center">

- [proxyHeaders](#proxyheaders)
- [proxyHeadersIgnore](#proxyHeadersIgnore)
- [redirectError](#redirecterror)

@@ -166,2 +167,7 @@ - [requestInterceptor](#requestinterceptor)

### `proxyHeadersIgnore`
- Default `['host', 'accept']`
Only efficient when `proxyHeaders` is set to true. Removes unwanted request headers to the API backend in SSR.
### `redirectError`

@@ -168,0 +174,0 @@ - Default: `{}`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc