No Access-Control

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #13230
    jupatisan
    Member

    Hello Goodday,

    I’m finished building a child theme. Almost everything is working fine.

    There is just one last problem:

    Font from origin ‘https://www.livemeshthemes.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘www.my site’ is therefore not allowed access.

    Can you please help me with this?

    Thank you very much.

    Kind regard,
    Sandra

    #13231
    jupatisan
    Member
    This reply has been marked as private.
    #13262
    Raghavendra
    Moderator

    Sandra – you will need to move the font files to your server. At present, the child theme style.css file references the font files on our server –

    @font-face {
        font-family: 'Weston';
        src: url('https://www.livemeshthemes.com/extinct/wp-content/fonts/Weston/weston_free-webfont.eot');
        src: url('https://www.livemeshthemes.com/extinct/wp-content/fonts/Weston/weston_free-webfont.eot?#iefix') format('embedded-opentype'),
        url('https://www.livemeshthemes.com/extinct/wp-content/fonts/Weston/weston_free-webfont.woff') format('woff'),
        url('https://www.livemeshthemes.com/extinct/wp-content/fonts/Weston/weston_free-webfont.ttf') format('truetype'),
        url('https://www.livemeshthemes.com/extinct/wp-content/fonts/Weston/weston_free-webfont.svg#weston_freeregular') format('svg');
        font-weight: normal;
        font-style: normal;
    
        }
    

    In fact, the above font will not render in FireFox due to security restrictions and will raise a warning in browsers like Chrome.

    #13265
    jupatisan
    Member

    Thank you very much Meteorite!

    I hoped that this would also solved the following problem with the editor in the child’s panel .

    PHP Warning: htmlspecialchars() [function.htmlspecialchars]:Invalid multibyte sequence in argument in E:\sandrafotografie.nl\wwwroot\wordpress\wp-includes\formatting.php on line 3203

    I made the correction and the first error is gone.
    But the problem with the editor is still there.
    Can you please help me with this last issue.

    Thank you for your patience

    #13311
    Raghavendra
    Moderator

    Unfortunately I am not finding much information on this error. The problem seems to be related to special characters in files. Can you try replacing formatting.php file and see if that helps? If the error number moves to another file, then you may need to reinstall a fresh copy of WordPress. You can also try using a plugin like WPIDE to edit files – not sure they will work well though if quite a number of files are affected.

    #13330
    jupatisan
    Member

    Thanks Meteorite,
    I’ll try WPIDE.

    Have a nice weekend!

    #13351
    Raghavendra
    Moderator

    Have marked this as resolved. Pls open another thread if required. Thanks.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘No Access-Control’ is closed to new replies.