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?
巴扎黑2017-05-19 10:25:24
Cookies are not shared!
It cannot cross domains. Strictly speaking, it cannot cross main domains.
天蓬老师2017-05-19 10:25:24
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
的
如果访问其他仿站并不会带上这个 cookie
If you visit other imitated sites, this will not be included cookie