CORS
わからん
code:js
var a = caches.match('https://anond.hatelabo.jp/images/og-image-1500.gif#.png')
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
(3) Request, Request, Request
0: Request {method: "GET", url: "https://www.newsweekjapan.jp/stories/assets_c/2019/03/pomodorobook190322-thumb-720xauto-155113.jpg", headers: Headers, destination: "", referrer: "", …}
1: Request {method: "GET", url: "https://pixe.la/v1/users/gosyujin/graphs/gosyujin.svg?mode=short", headers: Headers, destination: "", referrer: "", …}
2: Request {method: "GET", url: "https://qiita-user-contents.imgix.net/https%3A%2F%…w=1400&fit=max&s=308248201ff16879ef2c5e02a6c10867", headers: Headers, destination: "", referrer: "", …}
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.
参考
Provisional headers are shown
Cross-Origin Resource Sharing (CORS) - Amazon Simple Storage Service
Cross Originの画像をcanvasで読み込んでpngで吐き出す | nabeen.be
Gyazo API
Gyazo client_id
Gyazo API - 西尾泰和のScrapbox