File size: 2,380 Bytes
6eceab2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.aptdot.com/data/v1/http-security-headers.schema.json",
  "title": "Aptdot HTTPSecurityHeadersMatrix",
  "type": "object",
  "required": ["metadata", "headers"],
  "properties": {
    "metadata": {
      "type": "object",
      "required": ["name", "version", "generated_at", "license", "total_headers", "description"],
      "properties": {
        "name": { "type": "string" },
        "version": { "type": "string" },
        "generated_at": { "type": "string", "format": "date-time" },
        "license": { "type": "string", "format": "uri" },
        "total_headers": { "type": "integer", "minimum": 1 },
        "description": { "type": "string" }
      }
    },
    "headers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "header",
          "category",
          "rfc_w3c_spec",
          "baseline_default",
          "recommended_production",
          "risk_level",
          "app_targets",
          "deprecated_alternatives",
          "browser_compatibility",
          "common_pitfalls",
          "snippets"
        ],
        "properties": {
          "header": { "type": "string" },
          "category": { "type": "string" },
          "rfc_w3c_spec": { "type": "string", "format": "uri" },
          "baseline_default": { "type": "string" },
          "recommended_production": { "type": "string" },
          "risk_level": { "type": "string", "enum": ["Critical", "High", "Medium", "Low"] },
          "app_targets": { "type": "array", "items": { "type": "string" } },
          "deprecated_alternatives": { "type": "array", "items": { "type": "string" } },
          "browser_compatibility": { "type": "object" },
          "common_pitfalls": { "type": "string" },
          "snippets": {
            "type": "object",
            "required": ["nginx", "apache", "next_js", "vercel", "netlify", "caddy", "helmet"],
            "properties": {
              "nginx": { "type": "string" },
              "apache": { "type": "string" },
              "next_js": { "type": "string" },
              "vercel": { "type": "string" },
              "netlify": { "type": "string" },
              "caddy": { "type": "string" },
              "helmet": { "type": "string" }
            }
          }
        }
      }
    }
  }
}