Skip to content

Commit

Permalink
fix(headers): fix security bug with default request headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Aug 13, 2017
1 parent e4535e8 commit 9355228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default (ctx) => {
// Create new axios instance
const axios = Axios.create({
baseURL,
<% if(options.proxyHeaders) { %>headers: defaultHeaders,<% } %>
<% if(options.proxyHeaders) { %>headers: { common: defaultHeaders },<% } %>
})

<% if(options.credentials) { %>
Expand Down

0 comments on commit 9355228

Please sign in to comment.