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
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.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
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?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
This question has been automatically marked as stale because it has not had recent activity.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)