Font awesome error - “blocked by CORS policy” The Next CEO of Stack OverflowMagento 2 CORS & CDNAjax call getting CORS errors/conflictsMagento 2.3 Inject helper into controller object type error?Magento 2.3 Web Setup Wizard Fatal Error compact()Access to Font at 'http://..' from origin 'http://.' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header present on the req resError after removing database Prefixx-powered by : php/7.2.15 errorMagento 2 NO Access-Control-Allow-Origin redirect on other web siteMagento Website Errorupgrade from magento 2.2.5 to 2.3 error Front controller reached 100 router match iterations Issue

Return the Closest Prime Number

Grabbing quick drinks

How to get regions to plot as graphics

Increase performance creating Mandelbrot set in python

Failed to fetch jessie backports repository

Which organization defines CJK Unified Ideographs?

Why is there a PLL in CPU?

Customer Requests (Sometimes) Drive Me Bonkers!

How do scammers retract money, while you can’t?

What is the difference between "behavior" and "behaviour"?

How do I go from 300 unfinished/half written blog posts, to published posts?

Need some help with wall behind rangetop

Science fiction (dystopian) short story set after WWIII

Can a single photon have an energy density?

How to be diplomatic in refusing to write code that breaches the privacy of our users

Shade part of a Venn diagram

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

Inappropriate reference requests from Journal reviewers

What can we do to stop prior company from asking us questions?

How do we know the LHC results are robust?

If the heap is initialized for security, then why is the stack uninitialized?

Natural language into sentence logic

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

Unreliable Magic - Is it worth it?



Font awesome error - “blocked by CORS policy”



The Next CEO of Stack OverflowMagento 2 CORS & CDNAjax call getting CORS errors/conflictsMagento 2.3 Inject helper into controller object type error?Magento 2.3 Web Setup Wizard Fatal Error compact()Access to Font at 'http://..' from origin 'http://.' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header present on the req resError after removing database Prefixx-powered by : php/7.2.15 errorMagento 2 NO Access-Control-Allow-Origin redirect on other web siteMagento Website Errorupgrade from magento 2.2.5 to 2.3 error Front controller reached 100 router match iterations Issue










0















While loading my website, at some times icons are not displaying.



"blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." 


Error










share|improve this question
























  • are you on localhost ?

    – Pawan
    1 hour ago











  • No, in my live server

    – mohana
    14 mins ago















0















While loading my website, at some times icons are not displaying.



"blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." 


Error










share|improve this question
























  • are you on localhost ?

    – Pawan
    1 hour ago











  • No, in my live server

    – mohana
    14 mins ago













0












0








0








While loading my website, at some times icons are not displaying.



"blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." 


Error










share|improve this question
















While loading my website, at some times icons are not displaying.



"blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." 


Error







magento2.3 cors






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 33 mins ago









Ronak Rathod

715112




715112










asked 1 hour ago









mohanamohana

8210




8210












  • are you on localhost ?

    – Pawan
    1 hour ago











  • No, in my live server

    – mohana
    14 mins ago

















  • are you on localhost ?

    – Pawan
    1 hour ago











  • No, in my live server

    – mohana
    14 mins ago
















are you on localhost ?

– Pawan
1 hour ago





are you on localhost ?

– Pawan
1 hour ago













No, in my live server

– mohana
14 mins ago





No, in my live server

– mohana
14 mins ago










1 Answer
1






active

oldest

votes


















0














Please Can you open your .htaccess file and put below Code in .htaccess file.



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


it allows you to access all resources and webfonts from all domains.
Hope this is helpful.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267898%2ffont-awesome-error-blocked-by-cors-policy%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Please Can you open your .htaccess file and put below Code in .htaccess file.



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


    it allows you to access all resources and webfonts from all domains.
    Hope this is helpful.






    share|improve this answer



























      0














      Please Can you open your .htaccess file and put below Code in .htaccess file.



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


      it allows you to access all resources and webfonts from all domains.
      Hope this is helpful.






      share|improve this answer

























        0












        0








        0







        Please Can you open your .htaccess file and put below Code in .htaccess file.



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


        it allows you to access all resources and webfonts from all domains.
        Hope this is helpful.






        share|improve this answer













        Please Can you open your .htaccess file and put below Code in .htaccess file.



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


        it allows you to access all resources and webfonts from all domains.
        Hope this is helpful.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 33 mins ago









        Magento_BhurioMagento_Bhurio

        1869




        1869



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267898%2ffont-awesome-error-blocked-by-cors-policy%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Nidaros erkebispedøme

            Birsay

            Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?