Does jQuery send cookies in a post?

前端 未结 5 1871
执念已碎
执念已碎 2020-12-09 07:42

I want to know if, when I make a $.post(...) with jQuery, is any cookie sent to the server in the post request?

Thanks!

5条回答
  •  旧时难觅i
    2020-12-09 08:25

    Using the same cookies on the client and the server is not possible when you have httpOnlyCookies switched on. There is very good reason switch this on too:

    http://www.codinghorror.com/blog/archives/001167.html

提交回复
热议问题