Jquery File Upload - Not sending headers in IE9

前端 未结 2 1267
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 06:34

I\'m using jQuery Fileupload to upload files. Its not sending headers that I set to the server. Why is the Authorization header missing onl

相关标签:
2条回答
  • 2021-01-05 07:04

    This answers my question,

    Only browsers with support for XHR file upload support setting custom headers.

    0 讨论(0)
  • 2021-01-05 07:23

    As a workaround in old browsers like our dear IE, you could set a cookie with the authentication token when the user authenticate and then get it in the server and verify it the same way you verify the header one. I know that it is not the most elegant solution but it works.

    0 讨论(0)
提交回复
热议问题