每次尝试登录时,都会出现以下错误:
响应: {状态:403, statusText:“禁止”, 标头: {date:'Fri,26 Apr 2019 21:06:21 GMT', 'content-type':'application / json', 'content-length':'151', 连接:“关闭”, 'x-auth0-requestid':'b5fdffdf6a684596f900', 'x-ratelimit-limit':'30', 'x-ratelimit-remaining':'29', 'x-ratelimit-reset':'1556312782', '缓存控制': 'private,no-store,no-cache,must-revalidate,post-check = 0,pre-check = 0'}, 配置: {adapter:[Function:httpAdapter], transformRequest:[Object], transformResponse:[Object], 超时:0, xsrfCookieName:'XSRF-TOKEN', xsrfHeaderName:'X-XSRF-TOKEN', maxContentLength:-1, validateStatus:[功能:validateStatus], 标头:[Object], 方法:“发布”, 网址:“ https://buzz-z.auth0.com/oauth/token”, 数据: '{“ client_id”:“ client_secret”:“,” code“:” C97DSIpDnPKT4zlZ“,” grant_type“:” authorization_code“,” redirect_uri“:” https://localhost:4001/auth/“}'}, 请求: ClientRequest { _events:[对象], _eventsCount:6 _maxListeners:未定义, 输出:[], outputEncodings:[], outputCallbacks:[], outputSize:0, 可写:是的, _last:是的, chunkedEncoding:否, shouldKeepAlive:否, useChunkedEncodingByDefault:true, sendDate:否, _removedConnection:否, _removedContLen:否, _removedTE:否, _contentLength:null, _hasBody:是的, _预告片: '', 完成:是的, _headerSent:是的, 套接字:[TLSSocket], 连接:[TLSSocket], _header: 'POST / oauth / token HTTP / 1.1 \ r \ n接受:application / json,text / plain, / \ r \ n内容类型:application / json; charset = utf-8 \ r \ nUser -代理:axios / 0.18.0 \ r \ n内容长度:237 \ r \ n主机:buzz-z.auth0.com \ r \ n连接:close \ r \ n \ r \ n', _onPendingData:[功能:noopPendingOutput], 代理商:[代理商], socketPath:未定义, 超时:未定义, 方法:“ POST”, 路径:“ / oauth / token”, _ended:对, RES:[IncomingMessage], 已终止:未定义, timeoutCb:空, upgradeOrConnect:否, 解析器:null, maxHeadersCount:null, _redirectable:[可写], [Symbol(isCorked)]:否, [Symbol(outHeadersKey)]:[Object]}, 数据: {错误:“ unauthorized_client”, 错误说明: '重定向URI错误。您发送了https://localhost:4001,我们期望http://localhost:4001'}}
我已经检查了两侧的uri,它应该是正确的。我不确定这个问题可能在哪里。我也无法代理4001 / auth,如何解决此问题?