Setting request headers "Cookie" and "User-Agent" is not permitted in Chromium (at least 69+) with error Refused to set unsafe header "<header>"
I'm not web developer, simply commenting out the following lines works for me pretty well in Chromium.
--- a/libapidog0.js
+++ b/libapidog0.js
@@ -115,8 +115,8 @@ RequestTask.prototype = {
__send: function(body) {
this.xhr.open(this.type, this.url, true);
this.xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- this.xhr.setRequestHeader("User-Agent", LongPoll.userAgent);
- this.xhr.setRequestHeader("Cookie", "");
+ // this.xhr.setRequestHeader("User-Agent", LongPoll.userAgent);
+ // this.xhr.setRequestHeader("Cookie", "");
this.xhr.send(this.type === "POST" ? body : null);
return this;
},
@@ -391,4 +391,4 @@ sendEvent(METHOD_ACCESS_TOKEN_REQUIRE, {}, EVENT_ACCESS_TOKEN_RECEIVED);
Firefox does not have this issue and after my fix it works as fine as it did.