3 ms·
> CORS only applies to requests for restricted resources like fonts or XHR requests that aren't simple GETs and POSTs. CORS applies to XHR. Including GETs and
by lucideer 8y ago
> CORS only applies to requests for restricted resources like fonts or XHR requests that aren't simple GETs and POSTs.
CORS applies to XHR. Including GETs and POSTs, and including fetching images over XHR.
There's some other sibling comments here discussing preflight requests, which it sounds like you might be referring to, but CORS is not limited to just preflight requests.
- inglor 8y agoCORS applies to XHR but fetch can make opaque requests by setting {mode: 'no-cors'} as the second parameter.