亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - express about setting and getting cookies
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-07-05 10:55:52
0
1
1011

1. The cookie can be set successfully, but why can’t it be obtained? req.cookies has always been {}
The relevant parsing cookie npm package has been referenced

and the setting is successful.

But when I refresh to get req.cookies, it is always {}. This is why. . . ? ? ?

(1). Debugging is local environment debugging

PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證高級PHP講師

reply all(1)
黃舟

Are the client and server cross-domain?
Cross-domain requests will not automatically bring cookies. You will know by looking at the Request Headers of the network.
If you want to bring cookies with cross-domain requests, ajax must set withCredentials: true

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template