diff --git a/src/server/config/express.js b/src/server/config/express.js index 5c46e9d19..2e416e52f 100644 --- a/src/server/config/express.js +++ b/src/server/config/express.js @@ -20,7 +20,9 @@ const proxyApi = httpProxy.createProxyServer({ const proxyOneQuran = httpProxy.createProxyServer({ target: process.env.ONE_QURAN_URL, secure: false, - proxyTimeout: 15000 + proxyTimeout: 15000, + autoRewrite: true, + changeOrigin: true }); proxyApi.on('error', (error, req, res) => {