diff --git a/lib/cors-anywhere.js b/lib/cors-anywhere.js index 1a4c490..4f8da67 100644 --- a/lib/cors-anywhere.js +++ b/lib/cors-anywhere.js @@ -201,7 +201,7 @@ var getHandler = exports.getHandler = function(options, proxy) { originWhitelist: [], // If non-empty, requests not from an origin in this list will be blocked. requireHeader: null, // Require a header to be set? removeHeaders: [], // Strip these request headers. - setHeaders: [] // Set these request headers. + setHeaders: {} // Set these request headers. }; if (options) { Object.keys(corsAnywhere).forEach(function(option) {