草庐IT

Moqui Rest API调用失败与错误代码403

从我的Angular2应用程序中,我试图从Moqui获取数据,但是由于错误代码403,该请求总是失败。这是RESTAPI调用实现getExample(){leturl='http://localhost:8080/rest/s1/example/examples'letheaders=newHeaders({'Authorization':'Basicam9obi5kb2U6bW9xdWk='});headers.append('Accept','application/json,text/plain,*/*');headers.append('Content-Type','applicati