EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.
See original GitHub issueEvent source is working on apache srever. But When I am switching to nginx, it says
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.
I am using PHP and laravel and chrome browser.
I have added
header('Content-Type: text/event-stream');
header('Cache-Control: no-cache');
before the response from server.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
EventSource's response has a MIME type ("text/html") that is ...
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection. header is set to text/event- ...
Read more >EventSource's response has a MIME type ("text/html") that is ...
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.
Read more >EventSource's response has a MIME type ("text/html") that is ...
EventSource's response has a MIME type (“text/html”) that is not “text/event-stream”. Aborting the connection. This is my config: node_version: ...
Read more >EventSource's response has a MIME type ("text ... - YouTrack
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection. What steps will reproduce the problem?
Read more >Using EventStream doesn't work because MimeType from ...
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection. Checking the URL (controller ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Getting same issue. Have you resolved it?
@lmkoushik , @abzfarah , @Jurigag , are you sure the response is correct?