No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    CORS problem for Icons

    Framework
    2
    4
    631
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • volkano
      volkano last edited by volkano

      A service has a problem to reach our icon file in Quasar.

      'https://domain.com/fonts/MaterialIcons-Regular......woff' from origin has been blocked by CORS Policy. No 'Access-Control-Allow-Origin' header is present on the requested resource
      

      My system works on Nginx HTTP server. I read that I can handle that on my app or http server. Is there a solution for that?

      1 Reply Last reply Reply Quote 0
      • Hawkeye64
        Hawkeye64 last edited by

        If you are using Node with Express, use the Cors middleware: https://github.com/expressjs/cors

        1 Reply Last reply Reply Quote 0
        • volkano
          volkano last edited by

          Thanks for the reply. I think your suggestion is about backend. Our backend’s CORS is ok. The problem is in frontend. This is the file:

          'https://domain.com/fonts/MaterialIcons-Regular......woff'
          
          1 Reply Last reply Reply Quote 0
          • Hawkeye64
            Hawkeye64 last edited by

            This might help then: https://github.com/fontello/fontello/wiki/How-to-setup-server-to-serve-fonts

            1 Reply Last reply Reply Quote 0
            • First post
              Last post