INVALID_STATE_ERR: DOM Exception 11

withCredentials on ajax causes INVALID_STATE_ERR: DOM Exception 11