@nuxtjs/axios
Advanced tools
Comparing version 4.3.1 to 4.4.0
@@ -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) |
@@ -20,2 +20,3 @@ const chalk = require('chalk') | ||
proxyHeaders: true, | ||
proxyHeadersIgnore: ['accept', 'host'], | ||
debug: false, | ||
@@ -22,0 +23,0 @@ redirectError: {} |
@@ -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: `{}` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28141
354