javascript - cookie issue
我想大声告诉你
我想大声告诉你 2017-05-19 10:23:24
0
2
423

A h5 page is placed on the backend of the app. The backend address of the app is 192.168.114.22
After the app logs in, it calls webview to open the h5 page and sends an ajax request to another site a.test.com. This This request did not bring any cookies, why?

我想大声告诉你
我想大声告诉你

reply all(2)
巴扎黑

Cookies are not shared!

It cannot cross domains. Strictly speaking, it cannot cross main domains.

Peter_Zhu

Of course it will not bring cookie因为 cookie The domain is different

For example:
segmentfault’s cookie domain is segmentfault.com’s segmentfault 的这个 cookie 域是 segmentfault.com
如果访问其他仿站并不会带上这个 cookieIf you visit other imitated sites, this will not be included cookie

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