diff --git a/lib/cors-anywhere.js b/lib/cors-anywhere.js index 17553ab..0821236 100644 --- a/lib/cors-anywhere.js +++ b/lib/cors-anywhere.js @@ -189,7 +189,9 @@ var getHandler = exports.getHandler = function(options) { proxyRequest(req, res, proxy, full_url, { host: hostname, port: port, - https: isHttps + target: { + https: isHttps + } }); } };