I have font in my local space and try to change my html font with css @font-face
and it worked on any browser, except firefox. It's just a simple html and css file and i don't have any server like apache.
How should i fix it?
@font-face {
font-family: 'iransans';
src: url('../fonts/IRANSansWeb.woff2') format('woff2'),
url('../fonts/IRANSansWeb.woff') format('woff'),
url('../fonts/IRANSansWeb.eot') format('embedded-opentype'),
url('../fonts/IRANSansWeb.ttf') format('truetype');
}
i got this error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///P:/workspace/karAmuzi/karamuzi%20project%201/fonts/IRANSansWeb.woff2. (Reason: CORS request not http).