X-Requested-With header not set in jquery ajaxForm plugin

后端 未结 5 1622
余生分开走
余生分开走 2020-12-05 19:32

I\'m using the jQuery ajaxForms plugin to make an ajax submit to my CakePHP app.

Cake\'s RequestHandler detects ajax requests by looking at the \"X-Requested-With\

5条回答
  •  星月不相逢
    2020-12-05 20:10

    New development:

    As of now, the jquery.form plugin now supports multipart (including file) Uploads very well , in a cross-browser compatible way, and sets the X-Requested-With header. I was having this problem with an older version of jquery.form and the upgrade to 3.02 fixed it!

提交回复
热议问题