浏览代码

fix: add missing referer

Tienson Qin 2 周之前
父节点
当前提交
08a36a04a5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/frontend/extensions/video/youtube.cljs

+ 2 - 1
src/main/frontend/extensions/video/youtube.cljs

@@ -63,7 +63,8 @@
      {:id                (str "youtube-player-" id)
       :allow-full-screen "allowfullscreen"
       :allow             "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-      :referrer-policy    "strict-origin-when-cross-origin"
+      :referrer-policy   "strict-origin-when-cross-origin"
+      :referer           "https://logseq.com"
       :frame-border      "0"
       :src               url
       :height            height