Working on the Promises tutorial.
Chrome 79/MacOS 10.13.6
" Explaining basic promise syntax"
// Very first script command errors. CORS.
// The support page linked to the console error…
" In response to CVE-2019-11730, Firefox 68 and later define the origin of a page opened using a file:///
URI as unique. Therefore, other resources in the same directory or its subdirectories no longer satisfy the CORS same-origin rule. This new behavior is enabled by default using the privacy.file_unique_origin
preference."
Of course, if I just use imageRef.src = “coffee.jpg” . // No fetch. It works.
Does the tutorial need an update?
Mahalo,
C K
full code below.
PromisesPromises
My page