Fixed sloppy CSP media blocker detection breaking MSE blob: media placeholders on Chromium.
This commit is contained in:
parent
e33dc340dc
commit
7310f03c9c
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class CSP {
|
class CSP {
|
||||||
static isMediaBlocker(csp) {
|
static isMediaBlocker(csp) {
|
||||||
return /(?:^| )media-src (?:'none'|http)(?:;|$)/.test(csp);
|
return /(?:^|[\s;])media-src (?:'none'|http:)(?:;|$)/.test(csp);
|
||||||
}
|
}
|
||||||
|
|
||||||
build(...directives) {
|
build(...directives) {
|
||||||
|
|
Loading…
Reference in New Issue