sta*_*lar 5 javascript server-sent-events
我有一个服务器,它完全按照 SSE 客户端期望的格式发送数据,但 Chrome 在获取带有以下消息的 Content-Type 标头时立即关闭连接:EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection.
EventSource即使服务器没有设置适当的text/event-stream内容类型,是否也可以正常工作?
| 归档时间: |
|
| 查看次数: |
3141 次 |
| 最近记录: |