mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
WebUI: require Subresource Integrity on external links
Also migrate to .mjs format. PR #22263.
This commit is contained in:
parent
38070c6eee
commit
d79dc86d00
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