csp: allow multiple lines and add presets

This commit is contained in:
Girish Ramakrishnan
2026-01-13 17:38:31 +01:00
parent b9ea1573ea
commit a1b4fdf624
18 changed files with 56 additions and 59 deletions

View File

@@ -35,8 +35,8 @@
"displayName": "Display name",
"actions": "Actions",
"table": {
"date": "Date",
"version": "Version"
"version": "Version",
"created": "Created"
},
"action": {
"reboot": "Reboot",
@@ -1274,12 +1274,27 @@
"csp": {
"description": "Override any CSP headers defined by the app",
"title": "Content Security Policy",
"saveAction": "Save"
"saveAction": "Save",
"insertCommonCsp": "Insert common CSP",
"commonPattern": {
"allowEmbedding": "Allow embedding",
"sameOriginEmbedding": "Allow embedding (only subdomains)",
"allowCdnAssets": "Allow CDN assets",
"reportOnly": "Report CSP violations",
"strictBaseline": "Strict baseline"
}
},
"robots": {
"title": "Robots.txt",
"disableIndexingAction": "Disable indexing",
"description": "By default, bots can index this app"
"description": "By default, bots can index this app",
"commonPattern": {
"allowAll": "Allow all (default)",
"disallowAll": "Disallow all",
"disallowCommonBots": "Disallow common bots",
"disallowAdminPaths": "Disallow admin paths",
"disallowApiPaths": "Disallow API paths"
},
"insertCommonRobotsTxt": "Insert common robots.txt"
},
"hstsPreload": "Enable HSTS Preload (including subdomains)"
},
@@ -1401,7 +1416,7 @@
"cron": {
"title": "Crontab",
"saveAction": "Save",
"addCommonPattern": "Add common pattern",
"addCommonPattern": "Insert common pattern",
"commonPattern": {
"everyMinute": "Every Minute",
"everyHour": "Every Hour",