webusb / arduino

WebUSB demos running on Arduino (and compatible) hardware.
576 stars 152 forks source link

can only find devices from https://webusb.github.io #9

Closed monteslu closed 8 years ago

monteslu commented 8 years ago

When I host the same files on another HTTPS site, it wont list devices. Works fine from the github pages site.

Also, when plugging in a Micro or Leonardo I get a notification to go to the github pages site. Where is that coming from?

Version 51.0.2666.0 canary (64-bit) Mac OS 10.10.5

sowbug commented 8 years ago

See https://github.com/WICG/webusb/blob/gh-pages/explainer.md for an overview. In particular "USB devices will be associated with a web origin and can only be connected to from a page from the same origin." The landing page descriptor, which lives in the device firmware, determines the content of the notification.

On Thu, Mar 3, 2016, 9:27 PM Luis Montes notifications@github.com wrote:

When I host the same files on another HTTPS site, it wont list devices. Works fine from the github pages site.

Also, when plugging in a Micro or Leonardo I get a notification to go to the github pages site. Where is that coming from?

Version 51.0.2666.0 canary (64-bit) Mac OS 10.10.5

— Reply to this email directly or view it on GitHub https://github.com/webusb/arduino/issues/9.

monteslu commented 8 years ago

Would it make sense to allow WebUSB.cpp to be generic and have us pass in the whitelisted URLs from our .ino files?

reillyeon commented 8 years ago

Duplicate of issue #1.