Hi,
When we run the webgateway on localhost and do a POST, we got an errorcode 400 in Swagger and in the application log an Antiforgerytoken exception. We did the authorize offcouse and the GET methods works fine. When I do the call in Azure Kubernetes it also works fine. This happens in all modules so also the default ABP modules.
Is there a setting to ignore this validation on localhost? Or how can we solve this? We are using the Microservices template.
6 Answer(s)
-
0
hi
Did you try to clear cookies or try in the privacy mode of your browser?
-
0
Yes and yes. And we have this on multiple computers and also after creating a new Microservice solution. Looks like thisi is a validation done in one of the ABP packages.
-
0
When we run the webgateway on localhost and do a POST, we got an errorcode 400 in Swagger and in the application log an Antiforgerytoken exception.
Can you provide steps to reproduce this problem in the local environment? And what is your ABP Framework version?
-
0
When we run the webgateway on localhost and do a POST, we got an errorcode 400 in Swagger and in the application log an Antiforgerytoken exception.
Can you provide steps to reproduce this problem in the local environment? And what is your ABP Framework version?
- Create a new Microservice solution with ABP4.3.3.
- Build and run all services
- Open swagger of the gateway in the browser
- Authorize in swagger
- Execute a POST in swagger
That is going wrong
-
0
hi rick
We will fix this.
-
0
This question has been automatically marked as stale because it has not had recent activity.