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
Why do remote companies require working in the US?
How easy is it to start Magic from scratch?
Science fiction (dystopian) short story set after WWIII
How can I open an app using Terminal?
Describing a person. What needs to be mentioned?
Is it my responsibility to learn a new technology in my own time my employer wants to implement?
How to be diplomatic in refusing to write code that breaches the privacy of our users
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
Text adventure game code
How to write papers efficiently when English isn't my first language?
Why does standard notation not preserve intervals (visually)
Inappropriate reference requests from Journal reviewers
How do I construct this japanese bowl?
Return the Closest Prime Number
What does "Its cash flow is deeply negative" mean?
How to write the block matrix in LaTex?
How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?
Visit to the USA with ESTA approved before trip to Iran
Does the Brexit deal have to be agreed by both Houses?
Why is there a PLL in CPU?
How can I quit an app using Terminal?
Customer Requests (Sometimes) Drive Me Bonkers!
How do spells that require an ability check vs. the caster's spell save DC work?
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
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."
magento2.3 cors
add a comment |
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."
magento2.3 cors
are you on localhost ?
– Pawan
40 mins ago
add a comment |
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."
magento2.3 cors
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."
magento2.3 cors
magento2.3 cors
edited 11 mins ago
Ronak Rathod
715112
715112
asked 1 hour ago
mohanamohana
8210
8210
are you on localhost ?
– Pawan
40 mins ago
add a comment |
are you on localhost ?
– Pawan
40 mins ago
are you on localhost ?
– Pawan
40 mins ago
are you on localhost ?
– Pawan
40 mins ago
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered 11 mins ago
Magento_BhurioMagento_Bhurio
1849
1849
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
are you on localhost ?
– Pawan
40 mins ago