私は古いウェブサイトのURLを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]を、それが機能するようになりました...私はそれを読むことができません。 = \
不透明なリクエストの目的は何ですか?