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

前端 未结 2 1714
既然无缘
既然无缘 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: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.

提交回复
热议问题