Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASPNETCDN Bootstrap Graphicons not working

We have an issue with bootstrap 3.3.5, Graphicons are not working if using bootstrap css from ASPNETCDN

Below is error message:

Font from origin 'http://ajax.aspnetcdn.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://fiddle.jshell.net' is therefore not allowed access.

This is a demo http://jsfiddle.net/g7jt1tcd/4/

I did search around but still not having relevant information. Can you please give some advice to fix this problem?

like image 760
hazjack Avatar asked Mar 15 '23 02:03

hazjack


1 Answers

This looks like a configuration issue with ASPNETCDN. My suggestion is to use a different CDN since you don't have any control over there servers. Here are 2 other CDNs that I would recommend:

  • http://www.bootstrapcdn.com/
  • https://cdnjs.com/libraries/twitter-bootstrap

Example:

<script>https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.css</script>

Both CDNs have high availability. I just tested them against jsfiddle and worked without a problem.

See here: http://jsfiddle.net/g7jt1tcd/4/

like image 120
Jose Basilio Avatar answered Mar 26 '23 01:03

Jose Basilio