diff --git a/package-lock.json b/package-lock.json index 39f4760..0ca1ecc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,7 @@ "ngx-color": "^9.0.0", "primeflex": "^3.3.1", "primeicons": "^7.0.0", - "primeng": "^17.18.6", + "primeng": "^17.18.8", "rxjs": "7.8.1", "tslib": "^2.6.3", "zone.js": "~0.14.8" diff --git a/proxy.conf.js b/proxy.conf.js index 70ceecb..a89679e 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -5,7 +5,7 @@ const logFn = function (req, res) { //console.log(new Date().toISOString() + `: bypassing ${req.method} ${req.url} `) } -const bypassFn = function (req, res) { +function onProxyRes(proxyRes, req, res) { logFn(req, res) if (req.method.toUpperCase() === 'OPTIONS') { res.setHeader('Allow', 'GET, POST, HEAD, PUT, DELETE, OPTIONS') @@ -25,7 +25,7 @@ const PROXY_CONFIG = { }, changeOrigin: true, logLevel: 'debug', - bypass: bypassFn + onProxyRes: onProxyRes } }