Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1171018

    Hello

    The icons are missing. When I look at the element, it gets no icon:
    data-av_icon=””

    When I look at console, I can see it gets blocked:
    has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

    This is cross-control security if I’m not wrong. Do you have any solution for me?

    Regards.

    #1171032

    Hey tekniskakari,
    Thank you for the link, you are correct about the CORS policy, I see that some of your theme files are loading from “https://usercontent.one/wp/your-domain” instead of “your-domain” was this a temp url from your webhost or a CDN from your webhost?
    If this was a stagging (development) url and you moved it to your live domain, you will want to correct the url.
    If this is a Content Delivery Network (CDN) there may be an option within your settings to set the header to Access-Control-Allow-Origin *;
    otherwise, you could try this in your .htaccess file:

    <IfModule mod_headers.c>
        <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css|js|gif|png|jpe?g|svg|svgz|ico|webp)$">
            Header set Access-Control-Allow-Origin "*"
        </FilesMatch>
    </IfModule>

    Best regards,
    Mike

    #1171041

    Hey Mike.
    This is currently stagging.

    Changing the .htaccess file did the trick.

    Appreciated!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Fontello icons missing, cors policy’ is closed to new replies.