Does every web request send the browser cookies?

前端 未结 8 1939
太阳男子
太阳男子 2020-12-02 03:38

Does every web request send the browser\'s cookies?

I\'m not talking page views, but a request for an image, .js file, etc.

Update If a w

8条回答
  •  执笔经年
    2020-12-02 04:10

    Yes, as long as the URL requested is within the same domain and path defined in the cookie (and all of the other restrictions -- secure, httponly, not expired, etc) hold, then the cookie will be sent for every request.

提交回复
热议问题