mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-05 01:37:32 +00:00
Do not add X-Requested-With header for simple requests (#5931)
This commit is contained in:
@@ -114,6 +114,10 @@ TiddlyWebAdaptor.prototype.login = function(username,password,callback) {
|
||||
},
|
||||
callback: function(err) {
|
||||
callback(err);
|
||||
},
|
||||
headers: {
|
||||
"accept": "application/json",
|
||||
"X-Requested-With": "TiddlyWiki"
|
||||
}
|
||||
};
|
||||
this.logger.log("Logging in:",options);
|
||||
@@ -132,6 +136,10 @@ TiddlyWebAdaptor.prototype.logout = function(callback) {
|
||||
},
|
||||
callback: function(err,data) {
|
||||
callback(err);
|
||||
},
|
||||
headers: {
|
||||
"accept": "application/json",
|
||||
"X-Requested-With": "TiddlyWiki"
|
||||
}
|
||||
};
|
||||
this.logger.log("Logging out:",options);
|
||||
|
||||
Reference in New Issue
Block a user