CORS
わからん
code:js
a.then(finalResult => {
console.log(finalResult);
})
code:js
caches.open('image-2020-02-26').then(function(cache){
cache.keys().then(function(cachedRequests){
console.log(cachedRequests)
})
})
code:out.json
length: 3
__proto__: Array(0)
code:out.txt
Access to fetch at '*.png' from origin 'HOST' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
参考