• Resolved therock2018

    (@therock2018)


    Hello,
    Thank you very much for your plugin. I am using it with a hosting provider.

    Listen, I use the CDN function too.
    I have this issue:
    Access to Font at ‘https://s9w9v6y3.map2.cdn.net/italy/wp-content/themes/theme/fonts/AlexBrush-Regular.ttf’ from origin ‘https://domain.it’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header contains multiple values ‘*, *’, but only one is allowed.

    So, I thought to exclude that font for a rapid fix using your exclude field in the CDN section with different combinations
    https://ibb.co/9srmkq8

    I tried:
    /italy/wp-content/themes/theme/fonts/AlexBrush-Regular.ttf
    /fonts/AlexBrush-Regular.ttf
    and different ones without to fixed.

    Could you help me to fix this issue?
    You say:
    Paths containing these strings will not be served from the CDN. One per line.

    But How?
    Thank you very much for what you are doing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please make sure you have purged all after you made change ?

    and also please provide the report number.

    Best regards,

    Thread Starter therock2018

    (@therock2018)

    Hello, thanks for your support.
    I have tried to purge all on my server, on the cdn server without fixing the issue.
    Even if I say to your plugin to exclude from the cdn the AlexBrush-Regular.ttf it continues to look it as a cdn resource.

    So, the only way to fix this it has been to delete the .ttf extension from my cors rules in the htaccess.

    <FilesMatch “\.(ttc|otf|eot|woff|woff2|font\.css)$”>

    I Hope this helps.
    Regards.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    The ‘Access-Control-Allow-Origin’ header contains multiple values ‘*, *’, but only one is allowed.

    maybe you sent multiple CORS ?

    Best regards,

    Thread Starter therock2018

    (@therock2018)

    Hi, I checked this with my hosting provider.
    The only Cors occurrence is below one.

    I canceled the TTF extension to fix the issue.
    If you can improve the CDN exclusion function, it will be very useful.
    Thanks for what you are doing.

    My Cors code:

    ### marker CORS start ###
    <FilesMatch “\.(ttc|otf|eot|woff|woff2|font\.css)$”>
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin “*”
    </IfModule>
    </FilesMatch>
    ### marker CORS end ###

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    thanks , albeit this seems to be weird that .ttf needs to be removed from rule , but we will keep eye on it.

    Best regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude files from CDN’ is closed to new replies.