Fixed sloppy CSP media blocker detection breaking MSE blob: media placeholders on Chromium.

This commit is contained in:
hackademix 2020-10-26 10:01:57 +01:00
parent e33dc340dc
commit 7310f03c9c
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
class CSP {
static isMediaBlocker(csp) {
return /(?:^| )media-src (?:'none'|http)(?:;|$)/.test(csp);
return /(?:^|[\s;])media-src (?:'none'|http:)(?:;|$)/.test(csp);
}
build(...directives) {