jQuery.AjaxFileUpload.js icon indicating copy to clipboard operation
jQuery.AjaxFileUpload.js copied to clipboard

HTTP_X_REQUESTED_WITH

Open str opened this issue 10 years ago • 1 comments

I'm trying to send a file using this plugin, but the server side checking confirms if it's a valid ajax call, detecting if HTTP_X_REQUESTED_WITH is set in the header. This is an iframe submit, not an ajax call, so the header is not set.

How can I set the header to validate against the server side checking?

str avatar Aug 07 '15 02:08 str

Take a look at http://stackoverflow.com/a/17695034/311901

And give that a shot.

You'll probably want to make a fork / pull-request for that.

~ Jordan

See what I'm into on AngelList https://angel.co/jordan-feldstein

On Thu, Aug 6, 2015 at 7:51 PM, Stuardo -StR- Rodríguez < [email protected]> wrote:

I'm trying to send a file using this plugin, but the server side checking confirms if it's a valid ajax call, detecting if HTTP_X_REQUESTED_WITH is set in the header. This is an iframe submit, not an ajax call, so the header is not set.

How can I set the header to validate against the server side checking?

— Reply to this email directly or view it on GitHub https://github.com/jfeldstein/jQuery.AjaxFileUpload.js/issues/46.

jfeldstein avatar Aug 07 '15 03:08 jfeldstein