Hosting a panel app converted to pyodide-worker on GitHub pages

Does anyone have experience hosting a panel app converted to pyodide-worker on GitHub pages?

I get:

ahuang11.github.io/:1 Access to script at 'https://cdn.holoviz.org/panel/0.14.1/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-interpolation.js' from origin 'https://ahuang11.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

And dumped output here (renamed to index.html / index.js)

1 Like

Hi @ahuang11 .

I see issues like that once in a while. But I cannot really reproduce them.

FYI. @philippjfr

Are you able to open the app successfully here? Squarify

The console results in the error from above.

1 Like

I see another error

I’ve seen other people report the CORS issue but have double and triple checked the setting and could never reproduce it myself. And yes, the app seems to missing the .js file. I think you renamed the files from app.html/js → index.html/js but did not update the reference to app.js in the app.html to refer to the renamed index.js.

1 Like

Thanks all! I got it live now: Squarify

1 Like

I’m getting consistent CORS errors with this app

https://midnighter.github.io/multi-package-biocontainers/mulled.html

Enter, for example, bedtools 2.29.0 and pigz 2.3.4 and you should see a failing request to quay.io which is denied by CORS.