hicetnunc icon indicating copy to clipboard operation
hicetnunc copied to clipboard

p5.sound is blocked by the sandboxed iframe because it tries to load a script from a blob src

Open m0wh opened this issue 3 years ago • 2 comments

Hello :) Not reeeealy a bug (it's expected in a way), but I'm trying to mint a p5 sketch with some p5.sound stuff, but the preview just displays "Loading...". The sketch works as expected locally and I'm not using any cdn, everything is in my zip file, but p5.sound tries to load something from a blob src witch is disallowed by hicetnunc's sandboxed iframe.

Steps to reproduce the behavior:

  1. Compress a folder with an index.html importing local p5.min.js, p5.sound.min.js and a script using these libraries.
  2. Preview it on hicetnunc with your console open

image

Thanks :)

P.S. If there is no easy solution to this, I will rewrite my p5.sound part with vanilla js :)

m0wh avatar Apr 10 '21 11:04 m0wh

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/worker-src is not supported in iOS and child-src seems like only full solution

originaltomato avatar May 09 '21 18:05 originaltomato

This issue is fixed per this bug:

https://github.com/hicetnunc2000/hicetnunc/issues/1177

@crzypatchwork I believe this can be closed, too.

clayheaton avatar Nov 03 '21 20:11 clayheaton