• Resolved benoitfouc

    (@benoitfouc)


    Hello there, since many weeks i’ve theses errors on my browser console :

     Access to font at 'https://c0.wp.com/p/woocommerce/9.7.0/assets/fonts/WooCommerce.woff2' from origin 'https://mywebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

    GET https://c0.wp.com/p/woocommerce/9.7.0/assets/fonts/WooCommerce.woff2 net::ERR_FAILED 403 (Forbidden)

    I make some search and i found that the issue is caused by the Jetpack CND for loading this file :

    <script type="text/javascript" src="https://c0.wp.com/c/6.7.2/wp-includes/js/dist/vendor/react-jsx-runtime.min.js" id="react-jsx-runtime-js"></script>

    By disabling Jetpack that fix the issue but i need the Jetpack’s CDN…

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Chatoxz (a11n)

    (@chatoxz)

    Hi there,

    Sebastian from Jetpack here. I hope you are doing well. Thanks for reaching out with this issue.

    The CORS policy error you’re experiencing is due to the absence of the Access-Control-Allow-Origin header on the requested resource. This is a server-side configuration issue. To resolve it, you can:

    1. Contact your hosting provider to adjust the settings of your server (Apache/Nginx/Other) to add the Access-Control-Allow-Origin header to your HTTP responses.
    2. Alternatively, you can manually configure your server to include this header for the specific resources.

    If you need further assistance, please reply to this thread.

    Cheers,

    Thread Starter benoitfouc

    (@benoitfouc)

    Hello there, i already set this on the .htaccess file :

    Header always set Access-Control-Allow-Origin "*"

    And as you can see it’s correctly configurated : https://securityheaders.com/?q=https%3A%2F%2Fboutique.nature-partage.com%2F&followRedirects=on (but unsecure)

    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hi @benoitfouc ,

    Thanks for getting back to us. I can confirm that the CORS console errors are still there.

    Can you please tell us if they remain when you disable the asset caching option from Jetpack Accelerator? You can find this setting under Performance & Speed in Jetpack → Settings → Performance.

    Disabling the asset option would keep caching your images but would skip caching asset files.

    Look forward to your updates.

    Best,

    Thread Starter benoitfouc

    (@benoitfouc)

    Hello there, strangely the issue disapear few times after you replying on all my websites !

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @benoitfouc

    Excellent; I’m glad that the issue is resolved. If you have any trouble in the future, feel free to open a new thread.

    Thread Starter benoitfouc

    (@benoitfouc)

    I’m sorry but no… the issue come back using the assets files CDN

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @benoitfouc

    Could you try with the Asset CDN disabled?

    I tested this with a default WordPress installation with WooCommerce, Jetpack, and the CDN turned on, and I could not replicate the issue.

    Thread Starter benoitfouc

    (@benoitfouc)

    Hello there, the issue is on the single product page.
    I’ve created a stagging website and replicate the issue. i can share you a link access if you want.

    I’m using the Salient theme

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @benoitfouc

    Thank you for providing more details. Since the issue persists on your staging site, it would be helpful to check if the problem is related to the Salient theme. Could you try switching to a default theme like Twenty Twenty-One and see if the issue remains?

    If it does, please contact us via this contact form:

    https://jetpack.com/contact-support/?rel=support&hpi=1

    If you contact us via the form, please include a link to this thread.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.