400 status error when posting form data in ASP.Net Core [closed]

拜拜、爱过 提交于 2019-12-10 04:26:37

问题


I am developing an ASP.Net Core 2.0 application and run it on Linux/Nginx/Kestrel.

On the development environment (Windows 10) everything runs smoothly. Also when running the app with "dotnet run" in the project directory.

On the production environment (Debian 8/Kestrel) all form POSTs fail with HTTP status code 400 (Bad Request) without prompting any error in the console, while form GET requests run fine. All other messages (warnings, errors) are prompted in the console. I am running the application using "dotnet .dll".

Can anyone point me into a direction to solve the issue?

来源:https://stackoverflow.com/questions/47529210/400-status-error-when-posting-form-data-in-asp-net-core

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!