Search code examples
angulartomcatangular5tomcat8

When I refresh my website I get a 404 in console only in IE11 and Edge, Angular 5, Tomcat


When I refresh my Angular 5 application in IE11 or Edge browser, it is showing 404 error response in developer console

My angular application is deployed in Tomcat server. I do not want to use useHash: true in router module

How to fix this 404 response error?


Solution

  • Basically, you need to configure your server to provide index.html. Refer this. https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions#how-to-configure-your-server-to-work-with-html5mode