It is not possible to solve this problem by inserting custom bootstrap css and fonts into my azure cdn, but in chrome I keep getting the “Font from source” http://azxxxxxx.vo.msecnd.net 'has been blocked from loading by Cross-Origin resource sharing policy : No 'Access-Control-Allow-Origin' header is present in the requested resource. Therefore, the source address http: //localhost.domain: 16300 'is not allowed.
I changed my bootstrap css
font-face { font-family: 'Glyphicons Halflings'; src: url('//azxxxxxx.vo.msecnd.net/fonts/glyphicons-halflings-regular.eot'); src: url('//azxxxxxx.vo.msecnd.net/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('//azxxxxxx.vo.msecnd.net/fonts/glyphicons-halflings-regular.woff') format('woff'), url('//azxxxxxx.vo.msecnd.net/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('//azxxxxxx.vo.msecnd.net/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); }
I read some stackoverflow posts, added the following to my webconfig
<httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> </customHeaders> </httpProtocol> <staticContent> <mimeMap fileExtension=".woff" mimeType="application/octet-stream" /> </staticContent>
Still have the same problem, any ideas?
source share