css - Bootstrap No 'Access-Control-Allow-Origin' header -


in mvc site have installed bootstrap superhero theme use font-family 'lato' fonts.googleapis. file bootstrap.superhero.css file contain line... think problem here.

@import url("//fonts.googleapis.com/css?family=lato:300,400,700"); 

i have included in web.config code

<system.webserver>     <httpprotocol>       <customheaders>         <add name="access-control-allow-origin" value="*" />       </customheaders>     </httpprotocol>   </system.webserver> 

but error present. can import correctly font ?

there's no problem link tag. modify htaccess server accept origin's content.

<filesmatch "\.(ttf|otf|eot|woff)$">       <ifmodule mod_headers.c>         header set access-control-allow-origin "*"       </ifmodule>     </filesmatch> 

hope helps.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -