Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript auth0无法读取未定义的权限选项_Javascript_Reactjs_Auth0 - Fatal编程技术网

Javascript auth0无法读取未定义的权限选项

Javascript auth0无法读取未定义的权限选项,javascript,reactjs,auth0,Javascript,Reactjs,Auth0,我尝试在一个简单的react应用程序上运行auth0 我使用folling参数创建了一个auth0对象: this.auth0 = new auth0.WebAuth({ domain: AUTH_CONFIG.domain, clientID: AUTH_CONFIG.clientId, redirectUri: AUTH_CONFIG.redirectUri, audience: `https://${AUTH_CONFIG.d

我尝试在一个简单的react应用程序上运行auth0

我使用folling参数创建了一个auth0对象:

this.auth0 = new auth0.WebAuth({
        domain: AUTH_CONFIG.domain,
        clientID: AUTH_CONFIG.clientId,
        redirectUri: AUTH_CONFIG.redirectUri,
        audience: `https://${AUTH_CONFIG.domain}/userinfo`,
        responseType: AUTH_CONFIG.responseType,
        scope: AUTH_CONFIG.scope,
    });
在我登录Auth0网站并被重定向到我的回调url后,我得到了错误

无法读取未定义的权限

我只是想不出这个错误在哪里


在auth0中的应用程序中,我配置了:允许的回调URL:

可能没有像CORS one这样的地方需要配置它:检查此处:。您可以手动调用/回调url吗?您的Web服务器是否支持这种路由?嗯,我正在做SPA,我在auth0的每个选项字段中都添加了allow lochalhost…^^^我的SPA知道带有/callback的路由您确定后端/Web服务器上有该路由吗。SPA前端路线在这种情况下不起作用。