Is there a way to adjust the 'Referer' header in my Chrome app? When I try to set it using the following code:
xhr.setRequestHeader('Referer', 'http://example.com/');
I receive an error message that says:
ajax.js:15 Refused to set unsafe header "Referer"
I came across an older discussion where someone manipulated the 'Referer' field using chrome.webRequest, but this extension is no longer accessible in Chrome apps. Chrome.webRequest functionality has been deprecated! Despite many suggestions on Stack Overflow advising its use, it is no longer supported by Chrome. How can I update this header?