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

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -