Posts Tagged with Access Control Allow Origin

Displaying 1-1 of 1 result.
Resolved: Access to Font at from origin has been blocked by CORS policy
posted by admin on August 4, 2017
I have two websites - two different domains.
In style css I have font-face and include fonts from the same domain

@font-face {
font-family: "wr-icons";
font-style: normal;
font-weight: 400;
src:
url("../font/cbh-icons.eot") format("embedded-opentype"),
url("../font/cbh-icons.woff") format("woff"),
url("../font/cbh-icons.ttf") format("truetype"),
url("../font/cbh-icons.svg") format("svg");
}

It is working perfect on fonts owner domain, But when I trying to include from these fonts from the seconds domain, I got an errors like

Access to Font at 'https://isystems.am/font/cbh-icons.ttf' from origin 'http://lifestyle.am' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://lifestyle.am' is therefore not allowed access.

Server Side is Ubuntu 16.04 with NginXRead more