Skip to content

Commit b278bff

Browse files
committed
http-proxy-middleware comments
1 parent c7c332a commit b278bff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/handlers/auth-proxy.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import debug from '../debug.mjs'
66
import allow from './allow.mjs'
77

88
const PROXY_SETTINGS = {
9-
changeOrigin: true
9+
changeOrigin: true // Default settings; target is provided per-proxy via function parameter
1010
}
1111
const REQUIRED_PERMISSIONS = {
1212
get: ['Read'],

lib/handlers/cors-proxy.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const CORS_SETTINGS = {
1414
origin: true
1515
}
1616
const PROXY_SETTINGS = {
17-
target: 'http://placeholder',
17+
target: 'http://placeholder', // Placeholder required by v3; actual target determined by router function
1818
changeOrigin: true,
1919
followRedirects: true,
2020
proxyTimeout: 10000,

0 commit comments

Comments
 (0)