You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// [MDN] Experimental: Allows for downloads to occur without a gesture from the user.
209
+
// [REASON] Disabled because otherwise the <iframe/> can trick the user on behalf of us to perform an action.
210
+
'allow-downloads-without-user-activation': false,
211
+
// [MDN] Allows for downloads to occur with a gesture from the user.
212
+
// [REASON] Disabled because otherwise the <iframe/> can trick the user on behalf of us to perform an action.
213
+
'allow-downloads': false,
214
+
// [MDN] Lets the resource open modal windows.
215
+
// [REASON] The <iframe/> could 'window.prompt("Enter your tldraw password")'.
216
+
'allow-modals': false,
217
+
// [MDN] Lets the resource lock the screen orientation.
218
+
// [REASON] Would interfere with the tldraw interface.
219
+
'allow-orientation-lock': false,
220
+
// [MDN] Lets the resource use the Pointer Lock API.
221
+
// [REASON] Maybe we should allow this for games embeds (scratch/codepen/codesandbox).
222
+
'allow-pointer-lock': false,
223
+
// [MDN] Allows popups (such as window.open(), target="_blank", or showModalDialog()). If this keyword is not used, the popup will silently fail to open.
224
+
// [REASON] We want to allow embeds to link back to their original sites (e.g. YouTube).
225
+
'allow-popups': true,
226
+
// [MDN] Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.
227
+
// [REASON] We shouldn't allow popups as a embed could pretend to be us by opening a mocked version of tldraw. This is very unobvious when it is performed as an action within our app.
228
+
'allow-popups-to-escape-sandbox': false,
229
+
// [MDN] Lets the resource start a presentation session.
230
+
// [REASON] Prevents embed from navigating away from tldraw and pretending to be us.
231
+
'allow-presentation': false,
232
+
// [MDN] Experimental: Lets the resource request access to the parent's storage capabilities with the Storage Access API.
233
+
// [REASON] We don't want anyone else to access our storage.
234
+
'allow-storage-access-by-user-activation': false,
235
+
// [MDN] Lets the resource navigate the top-level browsing context (the one named _top).
236
+
// [REASON] Prevents embed from navigating away from tldraw and pretending to be us.
237
+
'allow-top-navigation': false,
238
+
// [MDN] Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.
239
+
// [REASON] Prevents embed from navigating away from tldraw and pretending to be us.
// [MDN] Lets the resource run scripts (but not create popup windows).
245
+
'allow-scripts': true,
246
+
// [MDN] If this token is not used, the resource is treated as being from a special origin that always fails the same-origin policy (potentially preventing access to data storage/cookies and some JavaScript APIs).
247
+
'allow-same-origin': true,
248
+
// [MDN] Allows the resource to submit forms. If this keyword is not used, form submission is blocked.
0 commit comments