ITPNYU / p5.ble.js

A Javascript library that enables communication between BLE devices and a p5 sketch using Web Bluetooth API. https://itpnyu.github.io/p5ble-website.
MIT License
41 stars 29 forks source link

Cannot use examples in p5 web editor #15

Open lorenzoromagnoli opened 2 years ago

lorenzoromagnoli commented 2 years ago

Trying to use the examples in the p5 web editor I constantly get an error:

Error: SecurityError: requestDevice() called from cross-origin iframe.

the examples code work fine if I run them locally.

corvanessen commented 2 years ago

I had the same issue. I think this has to do with increased security from the browser. You can still run in locally with something like VS Code and run on a local website with the Live Server extension, but it would be great to use it as before.