Wouldn't have been simpler to just discard cookies for cross-domain XHR?
问题 I keep fighting with strange limitations when developing for the web. One of them is the same-origin limitation for AJAX requests and I'm asking myself if instead of blocking requests to cross-domain resources wouldn't have been simpler to just discard cookies when making them (to avoid misuse of authentication credentials of the browser session). Cookies are a facility but quite not essential (for example you can generate pages with cookies in the request URLs if you need to keep context),