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
Post a Comment