mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-22 04:18:33 -05:00
fix: pass all parameters to onProxyReq in proxy configuration (#1083)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user