Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Fix node-http-proxy host in proxy request #501

Merged
merged 1 commit into from
Nov 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/server/config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down