search

Home  >  Q&A  >  body text

javascript - cookie issue

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?

我想大声告诉你我想大声告诉你2868 days ago467

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-19 10:25:24

    Cookies are not shared!

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

    reply
    0
  • 天蓬老师

    天蓬老师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
    如果访问其他仿站并不会带上这个 cookieIf you visit other imitated sites, this will not be included cookie

    reply
    0
  • Cancelreply