title: Error 403 when refreshing an angular app in Wildfly
body: <p>I have implemented an angular 6 app using hash location strategy and want to deploy it as WAR in Wildfly. The application runs fine, however reloading the page (e.g. <a href="http://localhost:9390/MyApp/app/#/login" rel="nofollow noreferrer">http://localhost:9390/MyApp/app/#/login</a>) results in an 403 forbidden error. Here is the setup:</p>
  
  <h1>WAR file:</h1>
  
  <pre><code>/app/* -&gt; angular app generated by ng-cli
  /error403.html -&gt; simple error page
  /WEB-INF
  /WEB-INF/web.xml
  /WEB-INF/classes/... REST services
  </code></pre>
  
  <h1>web.xml</h1>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"&gt;
      &lt;display-name&gt;MyApp&lt;/display-name&gt;
  
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;app/index.html&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  
  
      &lt;error-page&gt;
          &lt;error-code&gt;403&lt;/error-code&gt;
          &lt;location&gt;/error403.html&lt;/location&gt;
      &lt;/error-page&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>Thanks for any help.</p>