mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-15 22:14:28 -06:00
fixed comment typo for csrf token
This commit is contained in:
parent
b0d20adc6e
commit
8805c379d8
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user