Resolved: Access to Font at from origin has been blocked by CORS policy
I have two websites - two different domains.
In style css I have font-face and include fonts from the same domain
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
Server Side is Ubuntu 16.04 with NginX
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 NginX
One comment
Add to nginx domain server config file
Leave a Comment