如果我有2个域:
a.com:
=> Serves an HTML page with inline JavaScript
b.com:
=> Serves an HTML page on the /html route
=> Responds with a cookie on the /cookie route
当我从a.com
加载HTML时,内联JavaScript将向b.com/cookie
发出XHR请求。 此Cookie将与哪个域关联?
即如果我要转到b.com/html
所在的域,该域与对XHR请求的cookie作出响应的域相同,那么以前通过XHR请求向b.com/cookie
检索的cookie是否会包含在新域中?请求b.com/html
?