Re:WebUSB API: draft spec to safely expose USB device servic...
by asjfkdlf on Sunday April 10, 2016 @12:22PM
(#11466825)
That would be a good first step. It would have to be a subset of CSP. Don't allow inline scripts or eval.. Only on https is another step I see as very important.
Re:WebUSB API: draft spec to safely expose USB device servic...
by nsgi on Sunday April 10, 2016 @12:44PM
(#11466945)
One reason might be that developers would probably just do the minimum possible CSP rather than following the spirit of it. Unlike with HTTPS, a CSP could be created with the exact same security model as no CSP using directives like unsafe-eval.
Someone working for one of the major browsers mentioned they'd considered it but decided against it - not sure on the reasons why but if they're reading this they might like to elucidate...