Я пытался fetch
в адрес старого сайта, и ошибка произошла:Что такое непрозрачный запрос и для чего он служит?
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.
я понял сообщение, и пытался сделать непрозрачный запрос:
fetch("http://xyz", {'mode': 'no-cors'})
Ok, теперь он работает ... но я не могу это прочитать. = \
Какая цель тогда непрозрачного запроса?