CORS cookie with domain field is setting only in Firefox using jQuery AJAX

前端 未结 2 1693
既然无缘
既然无缘 2021-01-02 10:03

I am not able to set cookie when domain filed is added using cross site request. I am trying to achieve that by calling request through jquery ajax.

Is

相关标签:
2条回答
  • 2021-01-02 10:23

    I had this same problem, and it turned out that the browser settings were blocking third-party cookies (Chrome > Settings > Advanced Settings > Privacy > Content Settings > Block third-party cookies and site data). Allowing the cookies resolved the problem!

    0 讨论(0)
  • 2021-01-02 10:39

    I think the problem can be with localhost, which is not a valid domain for Set-Cookie header. According to RFC, it must contain at least one "embedded" dot. FireFox may implement this in a less restrictive way. Try your IP-address instead.

    0 讨论(0)
提交回复
热议问题