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

后端 未结 5 1624
余生分开走
余生分开走 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:14

    I found the problem to be lack of support for file uploads in older versions of the plugin. When I removed the file inputs, the problem went away.

提交回复
热议问题