3 ms·
Hmm. I couldn't find an indication of whether this requires Secure Context (ie only works with HTTPS or localhost) ? Secure Context seems (coupled with the per
by tialaramex 4y ago
Hmm. I couldn't find an indication of whether this requires Secure Context (ie only works with HTTPS or localhost) ?
Secure Context seems (coupled with the permission check) like it's an appropriate requirement here but I didn't see whether it's actually enforced, and obviously as an HTML attribute rather than say a Javascript API it might have been forgotten.
- MrStonedOne 4y agoSecure context has never applied for form data and i see no reason why it would here. If it's acceptable to send the picture as a file upload over http then i see no reason why it wouldn't be acceptable to send a webcam captured picture. Why do you think it should or would?
- advisedwang 4y agoMDN [1] does not list the Screen Capture API, so presumably the capture HTML element is not included either. [1] https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts/features_restricted_to_secure_contexts https://developer.mozilla.org/en-US/docs/Web/Security/Secure...