[英]Error 400 when running Visual Studio 2019 React template
I created an ASP NET Core application with React template and I didnt change anything there. 我用React模板创建了一个ASP NET Core应用程序,但是我没有在那做任何改动。 When I am starting it I am getting error 400 in browser. 当我启动它时,浏览器中出现错误400。 There are no errors in Output window. 在“输出”窗口中没有错误。
If you copy the address which your application starts eg https://localhost:44371/ and your app loads there, then you have cache issue or some conflict. 如果您复制应用程序启动的地址,例如https:// localhost:44371 /,并且您的应用程序加载到该地址,则说明存在缓存问题或某些冲突。
I have cleaned my browser cache from here: 我从这里清理了浏览器缓存:
chrome://settings/clearBrowserData?search=cache chrome:// settings / clearBrowserData?search = cache
Good idea is to set a proper time period, otherwise you will erase cookies that you don't need to. 最好是设置适当的时间段,否则您将擦除不需要的cookie。
Hope this helps. 希望这可以帮助。 It did in my case. 就我而言。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.