When requesting a cross-domain font file, you must ensure that the domain request is allowed to access the font file using CORS headers:
- Access-Control-Allow-Origin
- Access-Control-Allow-Credentials
However, this is not required when requesting images, either for img elements or background-image .
Why do these file types have different security?
source share