IE sends empty POST body randomly while using NTLM authentication (using angular to Spring)
<p>We are seeing issues with seemingly random calls that are missing the POST in IE 11.  Upon further inspection the requests from the browser are including a NTLM negotiation token.  We see this token on GETs too from time to time, but they are unaffected by the body problem as they don't have one.  Chrome and FF do not have this problem.</p>

<p>Further investigation shows that if our session times out and the browser is re-authed, then we will consistently see this problem after that at around 1 - 2 minute intervals.  It is my understanding that if IE "expects" a 401, then it will not include the POST body as is expects the NTLM handshake to take place again.</p>

<p>We have an angular app (currently mixed Angular 1 and 2, but occurred in 1 just before this).  The angular app makes restful webservice calls to our Spring boot application.  We are using waffle for NTLM auth</p>

<pre><code>// Shiro-Waffle / Security
'com.github.dblock.waffle:waffle-parent:1.7.3',
'com.github.dblock.waffle:waffle-shiro:1.7.3',
'org.apache.shiro:shiro-core:1.2.3',
'org.apache.shiro:shiro-web:1.2.3',
</code></pre>

<p><a href="https://blogs.msdn.microsoft.com/ieinternals/2010/11/21/challenge-response-authentication-and-zero-length-posts/" rel="nofollow noreferrer">https://blogs.msdn.microsoft.com/ieinternals/2010/11/21/challenge-response-authentication-and-zero-length-posts/</a></p>

<p>I have one crappy workaround that I will post below as an answer, but I do not like it at all.  </p>