How to feed a HTML5’s EventSource with a REST API custom endpoint?
This is because the rest API internally uses json_encode() to output the data. There are 2 ways that you can resolve this. 1. Prevent the API from sending the data This might be a bit odd and raise some issues, but you can set the header type and echo the content before returning the data: … Read more