abp icon indicating copy to clipboard operation
abp copied to clipboard

Authorization failed! Given policy has not granted!What is the cause?

Open xiaoyuer1015 opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

No response

Describe the solution you'd like

When I Post "wx.request({ url: 'https://localhost/api/app/digital-first', header:{ 'Content-Type':'application/json', 'Authorization':'Bearer '+token, }, success (res2) { console.log(res2.data) } });"

The feedback information as following: RemoteServiceErrorInfo ---------- { "code": "Volo.Authorization:010002", "message": "Authorization failed! Given policy has not granted: digital-first", "details": null, "data": { "PolicyName": "digital-first" }, "validationErrors": null }

Additional context

No response

xiaoyuer1015 avatar Dec 15 '22 07:12 xiaoyuer1015