diff --git a/samples/07.advanced-web-chat-apps/e.sso-on-behalf-of-authentication/app/src/setupProxy.js b/samples/07.advanced-web-chat-apps/e.sso-on-behalf-of-authentication/app/src/setupProxy.js index 2d62cc6ec6..a946314aa3 100644 --- a/samples/07.advanced-web-chat-apps/e.sso-on-behalf-of-authentication/app/src/setupProxy.js +++ b/samples/07.advanced-web-chat-apps/e.sso-on-behalf-of-authentication/app/src/setupProxy.js @@ -1,6 +1,6 @@ -const proxy = require('http-proxy-middleware'); +const { createProxyMiddleware } = require('http-proxy-middleware'); // Passthru-ing API traffic to /rest-api/ module.exports = app => { - app.use(proxy('/api', { target: 'http://localhost:5000/' })); + app.use(createProxyMiddleware('/api', { target: 'http://localhost:5000/' })); };