Open foolip opened 5 years ago
The original definition can be found in https://github.com/whatwg/html/pull/144, or at https://web.archive.org/web/20150906031258/https://html.spec.whatwg.org/#potentially-cors-enabled-fetch
This affects several other CSS specs as well. @annevk What term should be linked to, nowadays, to express this concept?
You probably want to do something similar to https://html.spec.whatwg.org/#create-a-potential-cors-request. In particular, you want to invoke https://fetch.spec.whatwg.org/#concept-fetch with a https://fetch.spec.whatwg.org/#concept-request with the appropriate bits set.
Thanks, @annevk !
Related issue https://github.com/w3c/csswg-drafts/issues/6076 (on Fonts, but the same issue)
See https://github.com/w3c/csswg-drafts/pull/6715
The "Potentially CORS request" algorithm is specifically to deal with crossorigin
attributes etc. In this PR I do something similar for CSS resources (which don't have those HTML attributes).
It's not yet integrated with masking.
https://drafts.fxtf.org/css-masking/#priv-sec says:
However, Fetch doesn't define "potentially CORS-enabled fetch" and mentions it only in https://fetch.spec.whatwg.org/#goals as having once been in HTML.
Perhaps @annevk can suggest what to say instead.