Jump to content

Implementacion Cloudfront Como Media Server

Recommended Posts

Recienteme he tratado de implementar el servicio de Amazon Cloudfront en mi PS 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 "*"

<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 mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]


Edited by Esmoof (see edit history)
Link to comment
Share on other sites

  • nadie locked this topic
This topic is now closed to further replies.
  • Create New...