From 277c21e915dc496ebc6efc79121815982d9877ae Mon Sep 17 00:00:00 2001 From: Sam Milledge Date: Wed, 25 Mar 2015 22:07:41 +1000 Subject: [PATCH] Allow setting custom headers on upload and crop requests --- croppic.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/croppic.js b/croppic.js index a9edeca..197d999 100644 --- a/croppic.js +++ b/croppic.js @@ -218,6 +218,7 @@ url: that.options.uploadUrl, data: formData, context: document.body, + headers: that.options.uploadHeaders, cache: false, contentType: false, processData: false, @@ -608,6 +609,7 @@ $.ajax({ url: that.options.cropUrl, data: formData, + headers: that.options.cropHeaders, context: document.body, cache: false, contentType: false,