Skip to content

Commit fb0c9dd

Browse files
authored
Merge pull request #1929 from processing/feature/usb
[#1927] Update allow list in iframe with usb and others
2 parents fc1a9fb + 61af307 commit fb0c9dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ function PreviewFrame({ fullView }) {
2424
const frameUrl = previewUrl;
2525
const sandboxAttributes = `allow-forms allow-modals allow-pointer-lock allow-popups
2626
allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads`;
27-
const allow = `accelerometer; autoplay; camera; encrypted-media; geolocation;
28-
gyroscope; microphone; magnetometer; midi; serial; vr;`;
27+
const allow = `accelerometer; ambient-light-sensor; autoplay; camera; encrypted-media; geolocation; gyroscope; \
28+
hid; microphone; magnetometer; midi; payment; usb; serial; vr; xr-spatial-tracking`;
29+
2930
return (
3031
<Frame
3132
title="sketch preview"

0 commit comments

Comments
 (0)