mirror of
https://github.com/d0zingcat/cors-anywhere.git
synced 2026-05-13 15:09:25 +00:00
setHeaders is a dict, not an array
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user