• Resolved julien.moysens

    (@julienmoysens)


    Hi there!

    Is it possible that this (wonderful!) plugin has issues with the .js being hosted on a CDN?
    I’m using bunny.net as a cdn, and host all .js over there.

    The console throws me the following errors :

    (index):1 Access to script at 'https://cdn.example.com/wp-content/plugins/presto-player/dist/components/web-components/p-4a716ef1.js' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    p-4a716ef1.js:1 Failed to load resource: net::ERR_FAILED
    (index):1 Access to script at 'https://cdn.example.com/wp-content/plugins/presto-player/dist/components/web-components/p-8450ec66.entry.js' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    p-8450ec66.entry.js:1 Failed to load resource: net::ERR_FAILED
    (index):1 Access to script at 'https://cdn.example.com/wp-content/plugins/presto-player/dist/components/web-components/web-components.esm.js?ver=1620201374' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    web-components.esm.js:1 Failed to load resource: net::ERR_FAILED
    (index):1 Access to script at 'https://cdn.example.com/wp-content/plugins/presto-player/dist/components/web-components/p-1bfe365e.entry.js' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

    I changed my URL to example.com and the cdn as well.

    Thanks,
    Julien

Viewing 2 replies - 1 through 2 (of 2 total)
  • Howdy Julien,

    I’m seeing the bunny.net general site cdn you set up for your site is blocking our javascript files.

    You’ll need to enable CORS headers for your js files. Can you edit your pullzone settings that you’re using for your general cdn in bunny and add , js to the cors header field? This is not a presto player pullzone, but the one you are using for the rest of your site.

    See screenshot here: https://share.getcloudapp.com/bLuARKwx

    Have a great day!

    Best,
    Abz

    Thread Starter julien.moysens

    (@julienmoysens)

    Hi Abz, that was it!
    Fixed as soon as implemented that little change.

    Thanks!
    Have a great day too.
    Julien

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bunny.net and plugin JS issues’ is closed to new replies.