cwilso / WebMIDIAPIShim

Polyfill using the Jazz NPAPI MIDI plugin to implement the Web MIDI API on Mac and Windows.
380 stars 53 forks source link

Problems getting sysex access #65

Closed gritd closed 8 years ago

gritd commented 8 years ago

Sorry but I just can't seem to get a sysex permission on the webMIDI:

navigator.requestMIDIAccess({sysex:true}).<...> throws a "An attempt was made to break through the security policy of the user agent."

however, I have enable the full midi control in chrome's settings. Is there anything else I need to do? Or does this only work from https?

AndrewHollis commented 8 years ago

From my understanding this needs https to work.

You can host on github as https.

cwilso commented 8 years ago

Yes, you need https for sysex. (Note this is coming from Chrome's native implementation, not the shim - the shim doesn't check for secure origin.