(js) Improve CAS handling

pull/259/head
Francis Lachapelle 2019-09-24 09:48:43 -04:00
parent ee92748b97
commit b454f71c7c
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@
response: function(response) {
// When expecting JSON but receiving HTML, assume session has expired and reload page
if (response && /^application\/json/.test(response.config.headers.Accept) &&
/^[\n\r ]*<!DOCTYPE html>/.test(response.data)) {
/^[\n\r ]*<!DOCTYPE html/.test(response.data)) {
$window.location.href = $window.ApplicationBaseURL;
return $q.reject();
}