mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-06 16:35:06 -04:00
Migrate to a good Content Security Policy (#1023)
So attacks such as XSS (see [0]) will no longer be of an issue. [0]: https://github.com/omarroth/invidious/issues/1022
This commit is contained in:
parent
f92027c44b
commit
70cbe91776
29 changed files with 274 additions and 175 deletions
3
assets/js/global.js
Normal file
3
assets/js/global.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
// Disable Web Workers. Fixes Video.js CSP violation (created by `new Worker(objURL)`):
|
||||
// Refused to create a worker from 'blob:http://host/id' because it violates the following Content Security Policy directive: "worker-src 'self'".
|
||||
window.Worker = undefined;
|
Loading…
Add table
Add a link
Reference in a new issue