summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 11f18af1c..b1f563cd5 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -6288,6 +6288,7 @@ function rcube_webmail()
contentType: formdata ? false : 'multipart/form-data; boundary=' + boundary,
processData: false,
data: formdata || multipart,
+ headers: {'X-Roundcube-Request': ref.env.request_token},
beforeSend: function(xhr, s) { if (!formdata && xhr.sendAsBinary) xhr.send = xhr.sendAsBinary; },
success: function(data){ ref.http_response(data); },
error: function(o, status, err) { ref.http_error(o, status, err, null, 'attachment'); }