Esmoof Posted February 25, 2016 Share Posted February 25, 2016 (edited) Recienteme he tratado de implementar el servicio de Amazon Cloudfront en mi PS 1.6.1.4 dado este el siguien error. Font from origin 'https://xxxxx.cloudfront.net' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.mi-dominio.com' is therefore not allowed access. He buscado una solución y esto es lo que he añadido a mi .htaccess, sin solucionarse el problema: <IfModule mod_headers.c><FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">Header set Access-Control-Allow-Origin "*"</FilesMatch></IfModule><IfModule mod_mime.c># Web fonts AddType application/font-woff woff AddType application/vnd.ms-fontobject eot # Browsers usually ignore the font MIME types and sniff the content, # however, Chrome shows a warning if other MIME types are used for the # following fonts. AddType application/x-font-ttf ttc ttf AddType font/opentype otf AddType image/svg+xml svg svgz AddEncoding gzip svgz</IfModule><IfModule mod_rewrite.c>RewriteCond %{HTTPS} !=onRewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]</IfModule> Edited February 25, 2016 by Esmoof (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts