feat: support wikipedia embeds and allow scrolling

This commit is contained in:
dwelle
2026-05-07 15:10:33 +02:00
parent b2b2815954
commit 133b9a7277
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -147,6 +147,8 @@ const ALLOWED_DOMAINS = new Set([
"giphy.com",
"reddit.com",
"forms.microsoft.com",
"wikipedia.org",
"*.wikipedia.org",
]);
const ALLOW_SAME_ORIGIN = new Set([
-2
View File
@@ -1840,8 +1840,6 @@ class App extends React.Component<AppProps, AppState> {
src={
src?.type !== "document" ? src?.link ?? "" : undefined
}
// https://stackoverflow.com/q/18470015
scrolling="no"
referrerPolicy="no-referrer-when-downgrade"
title="Excalidraw Embedded Content"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"