mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 21:52:32 -06:00
WebUI: require Subresource Integrity on external links
Also migrate to .mjs format. PR #22263.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user