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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -