text/event-streamEventSource expects text/event-stream. This is a text format. Each message has lines like data: ... and ends with a blank line. If the server sends JSON with application/json, EventSource fails the connection.
Content-Type must a Server-Sent Events endpoint respond with?text/event-streamEventSource expects text/event-stream. This is a text format. Each message has lines like data: ... and ends with a blank line. If the server sends JSON with application/json, EventSource fails the connection.