Questions tagged [cors]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
22 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 %{...
0
votes
0answers
20 views

How to add product from one store to another store in magento2?

I have two store Store A -Store B I have one configurable product SKU-test123. Now I want to display it to StoreA's one CMS page for example: www.storeA.com/testcms (using catalog product widget) ...
0
votes
1answer
33 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 ...
0
votes
0answers
10 views

CORS Header set Access-Control-Allow-Origin “*” not working for google fonts

I have this piece of code in my .htaccess file <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" Header set X-UA-Compatible "IE=edge" # `mod_headers` ...
0
votes
0answers
17 views

Preventing hotlinking to product images

Is it possible to prevent other web sites from using / loading images of a Magento 2 installation for example by setting a restrictive access-control-allow-origin, or setting htaccess rewrites? SEO ...
0
votes
0answers
217 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 ...
0
votes
1answer
25 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....
0
votes
2answers
532 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 ...
0
votes
1answer
862 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 ...
0
votes
1answer
126 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 ...
1
vote
0answers
489 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 ...
1
vote
1answer
651 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 ...
0
votes
1answer
928 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 ...
0
votes
1answer
441 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 ...
0
votes
1answer
37 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 ...
0
votes
1answer
472 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."
1
vote
0answers
408 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 ...
3
votes
2answers
5k 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 "*...
1
vote
0answers
252 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 ...
2
votes
1answer
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 "...
2
votes
1answer
4k 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 ...