I\'m using this function
obtenerCursos:async function(){
const data = await fetch(\'cursos.json\', {mode: \'no-cors\'});
type: "opaque"
This means that JavaScript cannot see the content of the response.
Since JS can't see the content, the content it can see has zero length. So it gets to the end of the content before finding anything that would make it valid JSON.
It is opaque because you said:
mode: 'no-cors'
Don't do that.