Giter VIP home page Giter VIP logo

Comments (9)

jdorfman avatar jdorfman commented on May 20, 2024

@blinkerz can you provide me line 1 please?

The mime types are not the issue IMO.

from bootstrapcdn.

idarmans avatar idarmans commented on May 20, 2024

https://github.com/FortAwesome/Font-Awesome/blob/master/css/font-awesome.css

@font-face {
  font-family: "FontAwesome";
  src: url('../font/fontawesome-webfont.eot'); /* This is the line that's missing */
  src: url('../font/fontawesome-webfont.eot?#iefix') format('eot'), url('../font/fontawesome-webfont.woff') format('woff'), url('../font/fontawesome-webfont.ttf') format('truetype'), url('../font/fontawesome-webfont.svg#FontAwesome') format('svg');
  font-weight: normal;
  font-style: normal;
}

from bootstrapcdn.

jdorfman avatar jdorfman commented on May 20, 2024

@blinkerz try this: https://netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome-72.css

from bootstrapcdn.

idarmans avatar idarmans commented on May 20, 2024

Still doesn't work. The code is already pretty much identical to:
http://cdnjs.cloudflare.com/ajax/libs/font-awesome/2.0/font-awesome.css
and the one from cdnjs works (apart from 1 minor issue cdnjs/cdnjs#620). That means there are other factors to why it doesn't work

from bootstrapcdn.

jdorfman avatar jdorfman commented on May 20, 2024

@blinkerz try this https://netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome-72a.css

from bootstrapcdn.

it-can avatar it-can commented on May 20, 2024

Could the problem be the missing protocol (http/https)?

from bootstrapcdn.

jdorfman avatar jdorfman commented on May 20, 2024

@it-can not sure, for now I am closing this issue.

If someone has IE7/8 and can test this: https://netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome-72a.css that would be great.

from bootstrapcdn.

adamjgrant avatar adamjgrant commented on May 20, 2024

Doesn't work for me either. But I should note that the css seems to be loading just fine--the font itself is not.

from bootstrapcdn.

elmacm avatar elmacm commented on May 20, 2024

.htaccess

# ----------------------------------------------------------------------
# CORS-enabled images (@crossorigin)
# ----------------------------------------------------------------------
# Send CORS headers if browsers request them; enabled by default for images.
# developer.mozilla.org/en/CORS_Enabled_Image
# blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
# hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
# wiki.mozilla.org/Security/Reviews/crossoriginAttribute


<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    # mod_headers, y u no match by Content-Type?!
    <FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">
      SetEnvIf Origin ":" IS_CORS
      Header set Access-Control-Allow-Origin "*" env=IS_CORS
    </FilesMatch>
  </IfModule>
</IfModule>


# ----------------------------------------------------------------------
# Webfont access
# ----------------------------------------------------------------------
# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like "subdomain.example.com".


<IfModule mod_headers.c>
  <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css)$">
    Header set Access-Control-Allow-Origin "*"
  </FilesMatch>
</IfModule>




IIS ver 7.5+

<system.webServer>
   <httpProtocol>
     <customHeaders>
       <add name="access-control-allow-origin" value="*" />
       <add name="access-control-allow-headers" value="content-type" />
     </customHeaders>
    </httpProtocol>
</system.webServer>

IIS ver < 7.5

 <system.webServer>      
   <httpProtocol>
     <customHeaders>
       <add name="access-control-allow-origin" value="*" />
     </customHeaders>
    </httpProtocol>
</system.webServer>

NginX

location ~ \.(ttf|ttc|otf|eot|woff|font.css|css)$ {
           add_header Access-Control-Allow-Origin "*";
}


from bootstrapcdn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.