fetch
古いウェブサイトの URL にアクセスしようとすると、エラーが発生しました。
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'})
わかりました、動作するようになりました...しかし、私はそれを読むことができません。=\
それでは、不透明な応答の目的は何ですか?