iis - Enable cross site access in OK Hosting? -


i'm trying download bootsrap fonts container have in site hosted ok hosting. can download font manually when using in css on page hosted in server, fails because cross site access disabled.

i know ok hosting uses iis give web based control panel.

how enable cross site access?

ok, have add file called web.config @ root of site following:

<?xml version="1.0" encoding="utf-8"?> <configuration>  <system.webserver>    <httpprotocol>      <customheaders>        <add name="access-control-allow-origin" value="*" />      </customheaders>    </httpprotocol>  </system.webserver> </configuration> 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -