diff --git a/lib/proxy.js b/lib/proxy.js index 6b27c88..6a85027 100644 --- a/lib/proxy.js +++ b/lib/proxy.js @@ -110,11 +110,7 @@ DynamicProxy.prototype.targetForRequest = function (request) { ); // extract key, token, and target_url from path if path-based - if ( - !(token && key) && - this.proxyPathPrefix && - request.url.startsWith(this.proxyPathPrefix) - ) { + if (this.proxyPathPrefix && request.url.startsWith(this.proxyPathPrefix)) { console.log( `Using proxyPathPrefix: ${this.proxyPathPrefix} for url: ${request.url}`, );