Skip to content

Commit 65ee2fa

Browse files
davidhemphillyyx990803
authored andcommitted
fix: pass all parameters to onProxyReq in proxy configuration (#1083)
1 parent a8a6b62 commit 65ee2fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@vue/cli-service/lib/util/prepareProxy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ module.exports = function prepareProxy (proxy, appPublicFolder) {
7979
)
8080
}
8181
},
82-
onProxyReq (proxyReq) {
82+
onProxyReq (proxyReq, req, res) {
8383
if (usersOnProxyReq) {
84-
usersOnProxyReq(proxyReq)
84+
usersOnProxyReq(proxyReq, req, res)
8585
}
8686
// Browsers may send Origin headers even with same-origin
8787
// requests. To prevent CORS issues, we have to change

0 commit comments

Comments
 (0)