mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
WebUI: require Subresource Integrity on external links
Also migrate to .mjs format.
This commit is contained in:
parent
b052ad0923
commit
b098453d0c
2 changed files with 20 additions and 12 deletions
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"extends": [
|
|
||||||
"html-validate:recommended"
|
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"input-missing-label": "error",
|
|
||||||
"long-title": "off",
|
|
||||||
"no-inline-style": "off",
|
|
||||||
"no-missing-references": "error",
|
|
||||||
"prefer-button": "off"
|
|
||||||
}
|
|
||||||
}
|
|
20
src/webui/www/.htmlvalidate.mjs
Normal file
20
src/webui/www/.htmlvalidate.mjs
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
import { defineConfig } from "html-validate";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
extends: [
|
||||||
|
"html-validate:recommended"
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
"input-missing-label": "error",
|
||||||
|
"long-title": "off",
|
||||||
|
"no-inline-style": "off",
|
||||||
|
"no-missing-references": "error",
|
||||||
|
"prefer-button": "off",
|
||||||
|
"require-sri": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
target: "crossorigin"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
});
|
Loading…
Add table
Add a link
Reference in a new issue