Tengo un servidor SSE local que envía mensajes en el puerto 8080. Me gustaría leerlos desde el navegador usando EventSource como se muestra aquí .
Pero si escribo lo siguiente en la consola del navegador:
var evtSource = new EventSource('http://127.0.0.1:8080', {});me sale un error:
Firefox can't establish a connection to the server at http://127.0.0.1:8080/. Content Security Policy: The page's settings blocked the loading of a resource at http://127.0.0.1:8080/ (“connect-src”).¿Cómo puedo arreglar esto?