jQuery getJSON doesnt send cookies

前端 未结 3 1872
半阙折子戏
半阙折子戏 2020-12-28 21:54

i am including JS on domain1 form domain2


t

3条回答
  •  渐次进展
    2020-12-28 22:35

    You have different hosts. In the first example the host is "Host: www.floowie.com". In the second it is "Host: test1.floowie.com".

    I'm guessing that the cookies are originally set by 'test1.floowie.com' and you haven't specified that they should be available to '.floowie.com' (i.e. the whole domain and all subdomains).

    Can you post the code that sets the cookies in the first place?

    If you get this fixed, it should at least show consistent behaviour. However, IE will probably still not pass cookies across subdomains. That's what I'm wrestling with at the moment, which is how I can across your question.

提交回复
热议问题