See the example in the URL. Implementing this would make it work for Safari and other browsers that have strict origin restrictions on cookies.
Version: unspecified
Severity: enhancement
URL: https://developer.mozilla.org/En/HTTP_access_control#Requests_with_credentials
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=28700