Skip to content

Commit

Permalink
fix: pass all parameters to onProxyReq in proxy configuration (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhemphill authored and yyx990803 committed Apr 26, 2018
1 parent a8a6b62 commit 65ee2fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/cli-service/lib/util/prepareProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ module.exports = function prepareProxy (proxy, appPublicFolder) {
)
}
},
onProxyReq (proxyReq) {
onProxyReq (proxyReq, req, res) {
if (usersOnProxyReq) {
usersOnProxyReq(proxyReq)
usersOnProxyReq(proxyReq, req, res)
}
// Browsers may send Origin headers even with same-origin
// requests. To prevent CORS issues, we have to change
Expand Down

0 comments on commit 65ee2fa

Please sign in to comment.