EventSource's response has a MIME type ("text/plain") that is not "text/event-stream"
<p><em>EventSource's response has a MIME type (&quot;text/plain&quot;) that is not &quot;text/event-stream&quot;. Aborting the connection.</em></p>
<p>Why I'm getting this error when sending a request from javascript to servlet?</p>