mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 06:02:29 -06:00
WebUI: require Subresource Integrity on external links
Also migrate to .mjs format. PR #22263.
This commit is contained in:
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