Hi Guys,
I was testing using the $tm1Ui.applicationLogin from my a controller, however I run into a CORS related error:
Using Canvas Version: 2.0.4:
function code:
$tm1Ui.applicationLogin(‘dev’,‘nsa’,‘nsa’).then(function(response){
$log.log(response );
});
chrome console error:
When I use the directive tm1-ui-login , things work ok though:
directive code:
< tm1-ui-login tm1-default-instance=“dev”>
(with typing in user: nsa, pswrd: nsa…)
Do I need to pass in an additional configuration object to $tm1Ui.applicationLogin function?
Or am I understanding/doing something incorrectly?
Thanks in advance!
Regards,
Gerhard