2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-16 06:24:28 -06:00

fixed comment typo for csrf token

This commit is contained in:
ZsgsDesign 2022-01-24 12:24:27 +08:00
parent b0d20adc6e
commit 8805c379d8

View File

@ -2407,7 +2407,7 @@ EasyMDE.prototype.uploadImage = function (file, onSuccess, onError) {
};
request.open('POST', this.options.imageUploadEndpoint);
// insert CSRF body token if provided in config.
// insert CSRF header token if provided in config.
if (self.options.imageCSRFToken && self.options.imageCSRFHeader) {
request.setRequestHeader(self.options.imageCSRFName, self.options.imageCSRFToken);
}