我正在使用我的angularjs应用程序进行的一个特定调用遇到此问题。
以下是一步一步发生的事情:
1。我登录我的angularApp
2。转到此页面,我添加了一个subOrganization(发生错误的地方)
3。我为子组织设置了名称,然后点击“添加子组织”。
4。在添加新的subOrg时调用以下函数:
addSubOrg: function(newLocation,parentLoc){
return $http({
method:'POST',
url:'https://xxxxxxxxxx.net/xxxxxx/Organizations/'+$cookieStore.get('account')+'/Services/AddOrganizationalUnit?appKey=' + $cookieStore.get('keyId'),
headers: {
'ACCEPT':'application/json',
'Content-Type':'application/json'
},
data:{
name:newLocation,
parentName:parentLoc
}
}).then(function(response){
//console.log(response);
return response;
},function(err){
console.log(err);
return err;
})
5. 它给了我“显示临时标题”的消息,并将我踢出网站。
6。我再次登录并再次应用步骤1,2,3,4 ,它完全正常。
我试着仔细阅读link,但我不明白的是 1.为什么这只会在第一次登录时发生? 2.为什么即使在其他60个其他呼叫正常工作时,这个特定呼叫也会给我错误。