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
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
1 hour ago
No, in my live server
– mohana
14 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 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
add a comment |
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
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 33 mins ago
Magento_BhurioMagento_Bhurio
1869
1869
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
1 hour ago
No, in my live server
– mohana
14 mins ago