2022 Developer Survey is open! Take survey.

Questions tagged [cors]

Denotes questions related to Cross-Origin Resource Sharing (CORS)

Filter by
Sorted by
Tagged with
0 votes
1 answer
74 views

CORS issue fails the communicatin within Magento 2 (Graphql) instance and React app: Response to preflight request doesn't pass access control check:

Getting following error trying to fetch data from react app. Magento 2.4.2 Reac JS v17 Apollo/Client 3 import { ApolloClient, InMemoryCache } from "@apollo/client"; export const client ...
user avatar
0 votes
0 answers
206 views

Magento 2 How to fix Error site has been blocked by CORS policy

I have Developed a custom API its working fine in Postman, but its not working in another platform. How to fix this issue. I tried by updating root .htaccess RewriteEngine on RewriteCond %{...
user avatar
0 votes
1 answer
429 views

CORS Header allow cross origin not working for google fonts

Here I have some code in my .htaccess file <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" Header set X-UA-Compatible "IE=edge" # `mod_headers` cannot ...
user avatar
  • 17
0 votes
1 answer
648 views

Access to font at '/fonts/fontawesome-webfont.woff?v=4.7.0' from origin 'https://www.origin.com' has been blocked by CORS policy

Access to font at '/fonts/fontawesome-webfont.woff?v=4.7.0' from origin 'https://www.origin.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested ...
user avatar
0 votes
1 answer
31 views

magento 1 domain name change causes COrS errors and site breaks

I have two magento 1 sites on separate servers - this is doubltless the wrong way to have gone about doing this and i'm still on a (steep) learning curve with changin themes in M1 https://www....
user avatar
0 votes
2 answers
1k views

CORS error - HTML and fonts not working properly with CloudFront CDN

I have been trying to get my magento store working with AWS CloudFront for static and media folders. I have one CloudFront distribution for each of the folders. Media files are working fine as well as ...
user avatar
  • 1
1 vote
1 answer
2k views

CORS error on Magento 2 with cloudfront

We are running magento 2 on below setup Apache > Varnish > NGinx SSL termination On initial setup we were getting the below error for all assets in pub/static Failed to load xxx: Request header ...
user avatar
  • 471
0 votes
1 answer
205 views

Pub folder html file: serving from nginx + CDN and CORS

In my pub/static folder I can see that most themes are serving HTML files. However, these are not specifically handled in the Nginx configuration file. When serving the full folder from CDN I get ...
user avatar
3 votes
0 answers
843 views

Magento 2.X: HTML files blocked by CORS if using Cloudfront and no Varnish hit

I have Magento 2.3.2 with nginx backend, SSL only, and proxypass to Varnish. I have configured 2 distributions in my cloudfront CDN to serve media and static files. To handle the CORS issues I have ...
user avatar
1 vote
1 answer
1k views

Magento 2 CORS issue

I have multi store as well as multi domain in my magento site. www.domain.nl www.domain.be the issue occurs in back-end (admin grid) when I want to filter products, orders, or customers. the error ...
user avatar
0 votes
1 answer
2k views

NGINX cross control origin header added but font files still blocked by CORS policy

I have added the following headers to all the locations where my static content is mentioned in the Nginx conf file and it removes the CORS issue for all files except for font files such as woff2 or ...
user avatar
1 vote
1 answer
831 views

Magento 2 cdn issue for modal popup - KeyCdn

We uses KeyCdn to use cdn feature for magento 2. We use push zone for one of our website for testing. KeyCdn working fine except modal popup CORS issue. We are facing below error. Access to ...
user avatar
0 votes
1 answer
42 views

Force all links in admin area to use www

Is there a way to force all links in the Magento admin area to use www? We have a site that's been around for a long time and all the frontend URLs are indexed with 'www' at the start. There were ...
user avatar
0 votes
1 answer
996 views

Font awesome error - "blocked by CORS policy"

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."
user avatar
  • 569
1 vote
0 answers
590 views

Magento 2 NO Access-Control-Allow-Origin redirect on other web site

In my Controller I use $this->_response->setRedirect($url); I got this error. Access to XMLHttpRequest at 'URL' (redirected from 'myWebStoreUrl') from origin 'myServerUrl' has been ...
user avatar
3 votes
2 answers
10k views

Magento 2 Access-Control-Allow-Origin

I tried <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" and tried for js cross orign from htaccess <FilesMatch "\.(js)$"> Header set Access-Control-Allow-Origin "*...
user avatar
  • 467
1 vote
0 answers
390 views

Ajax call getting CORS errors/conflicts

What i'm trying to do is as follows, we have different external content pages that have one or more of our products and need a simple "add to cart" button. To accomplish this i want to use a ajax ...
user avatar
2 votes
1 answer
4k views

SecurityError: Permission denied to access property "tinymce" on cross-origin object

I'm using Magento 1.9.3.4 AND KeyCDN. I configured the js/media/css files to come from CDN. On the CDN I enabled the CORS. The CDN uses HTTP/2, shared SSL and the Origin Shield setting is set to "...
user avatar
  • 319
2 votes
1 answer
5k views

Magento 2 CORS & CDN

Using cdn77 which does not have the ability to set cross origin on that end so I need to update the htaccess of the store. I have updated the pub/static/.htaccess to include fonts setting Header ...
user avatar
  • 1,982