제 모집단에서는 사용자를 conditinal로 리디렉션하고 있습니다. 모두 firefox
브라우저가 아닌 다른 모든 브라우저에서 작동합니다.
firefox
브라우저는 서버 측 요청으로이 을 고려하고 알 수없는 호출로 인해 내 응용 프로그램 trigger
을 오류로 간주합니다. chrome,ie
잘 작동합니다.
fn.redirectToLogin = function() {
var site = fn.env.auth;
var clientId = fn.env.oauth.client_id;
var redirectUri = fn.env.oauth.redirect_uri;
var authorizePath = String("authorization.oauth2?response_type=token&client_id=");
var state = fn.env.state;
var URL = encodeURI(site + authorizePath + clientId + '&redirect_uri=&scope=&state=' + encodeURIComponent(JSON.stringify(state)));
$window.location.href = URL;//requesting to server!! throws error
console.log('fn.env.state::', fn.env.state);
}
if(!$rootScope.isUserLoggedIn && fn.env.state !== undefined) {
console.log('going to call auto login!');
fn.redirectToLogin();
}
이 줄에 어떤 종류의 오류가 발생하는지 추가 할 수 있습니까? $ window.location.href = URL; // 서버에 요청 중 !! 오류가 발생했습니다 '? – GROX13
사실, 내 애플 리케이션은 특정 요청에 여러 오류가 있습니다. 위의 문제의 경우, 나는 "뭔가 잘못"으로 기본 오류가 나타납니다 - 그럼 내 애플 리케이션이 제대로 작동합니다. firefox에서만이 – user2024080