I send request to my API with ajax in NodeJS as shown as:
$.ajax({
url: myurl,
method: 'GET',headers:{'Referer':MyWebsiteName}
xhr: function() {
return xhrOverride;
})
But NodeJS dont send my headers and show Refused to set unsafe header "Referer"
, I send this request with python and work perfect, How can I disable this Refused to set unsafe header "Referer"
in NodeJS?