Ho provato a fetch
l’URL di un vecchio sito Web e si è verificato un errore:
Fetch API cannot load http://xyz. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://abc' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Ho capito il messaggio e ho provato a fare una richiesta che restituisce una risposta opaca:
fetch("http://xyz", {'mode': 'no-cors'})
Ok, ora funziona … ma non riesco a leggerlo. = \
Qual è lo scopo quindi, di una risposta opaca?