diff --git a/plugins/xss.js b/plugins/xss.js index 44106d19a..014e14dd9 100644 --- a/plugins/xss.js +++ b/plugins/xss.js @@ -19,7 +19,7 @@ const options = { const allowedSources = [ { regex: - /^https?:\/\/(www\.)?youtube\.com\/embed\/[a-zA-Z0-9_]{11}(\?&autoplay=[0-1]{1})?$/, + /^https?:\/\/(www\.)?youtube(-nocookie)?\.com\/embed\/[a-zA-Z0-9_-]{11}(\?&autoplay=[0-1]{1})?$/, remove: ['&autoplay=1'], // Prevents autoplay }, ]