- ABP Framework version: v5.3.2
- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
I tried this on a new generated microservice-template..: Stepts to reproduce:
- generate a microservice solution: abp new AppMicro -t microservice-pro -u blazor-server -csf
- run solution with powershell .\run-tye.ps1
- open product service api and authenticate with WebGateway_Swagger account
- Try a get on products --> this works fine
- Try to post a new product -> Error 400
I receive this error:
Seems like the antifogery token is not set properly? i also checked permissions in gui and granted WebGateway_Swagger all permissions. No change.
What i am not getting here ~ ?
8 Answer(s)
- 
    0open product service api and authenticate with WebGateway_Swagger account Refresh the swagger API page works? 
- 
    0Yes this works fine. also cleared all cookies in browser. If i generate a product from blazor app menu the product is created fine. but in swagger i receive the above error. Same swagger problem also with the other services. 
- 
    0ok, I got this, I will try to refresh the swagger page after the authcatation. 
- 
    0No, sorry a page refresh wont change something. There error still persits. i did misunderstood you. 
- 
    0ok I will check it again 
- 
    0hi Please try to replace all UseSwaggerUIwithUseAbpSwaggerUIin your project.
- 
    0Yes, this fixed it. Can you explain why ? Will it be replaced in the template or through abp-cli for future ? 
- 
    0Yes, We will update this in the next patch version. 

 
                                