Skip to content

Commit 110d678

Browse files
authored
Merge pull request #1070 from csarven/release/v5.0.0
Make CORS proxy follow redirects
2 parents 89a751e + d602618 commit 110d678

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/handlers/cors-proxy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ const PROXY_SETTINGS = {
1919
target: 'dynamic',
2020
logLevel: 'silent',
2121
changeOrigin: true,
22+
followRedirects: true,
23+
proxyTimeout: 5000,
2224
router: req => req.destination.target,
2325
pathRewrite: (path, req) => req.destination.path
2426
}

0 commit comments

Comments
 (0)