When I was learning cross-origin resource sharing in JavaScript advanced programming, I tried to use the withCredentials attribute to carry a cookie to request a page in another domain. I found that the cookie I carried was not the cookie I had set before, but another cookie. thing
What are the key-value pairs in this cookie? The name of the cookie I set is cname and the value is cvalue, but it carries these things. What's going on?
Have permissions been set in the request header?
Access-Control-Allow-Credentials: true
Reference article: http://www.aizelasi.club/arch...