Not Receiving Set-Cookie Header with axios post request

前端 未结 4 1630
囚心锁ツ
囚心锁ツ 2020-12-19 18:08

I have a PHP Script which successfully returns some simple Headers as well as a set-cookie header if called directly in the browser (or by postman). I can read the response-

4条回答
  •  再見小時候
    2020-12-19 19:11

    probably cookie is 'httpOnly', which means client side javascript can not read it. Therefore it is not showing in chrome cookie section. test the same request in mozilla, header will show up.

提交回复
热议问题