【问题标题】:In angularjs, getting Okta error before it even hits first line of $scope.submit在 angularjs 中,甚至在到达 $scope.submit 的第一行之前就出现 Okta 错误
【发布时间】:2017-05-25 20:28:50
【问题描述】:

我是 AngularJS 的新手,正在尝试添加 Okta 登录。我收到以下错误:

shared.js:65 Uncaught TypeError: Cannot read property 'charAt' of undefined
at a.getDisplayName (shared.js:65)
at Okta.PageMonitor.<anonymous> (shared.js:3)...

甚至在我点击下面的 console.log 行之前,我就收到了错误:

$scope.submit = function () {

      console.log('Error happens before this');

我如何找出发生这种情况的方式或原因?

【问题讨论】:

    标签: javascript angularjs intellij-idea okta


    【解决方案1】:

    当使用Okta Sign-In Widget 和浏览器插件时,这是一个known issue。任何托管在 localhost 上的应用程序当前都会抛出:

    Uncaught TypeError: Cannot read property 'charAt' of undefined
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-06-02
      • 1970-01-01
      • 2023-03-14
      • 1970-01-01
      • 2020-10-29
      • 2016-03-08
      • 1970-01-01
      相关资源
      最近更新 更多