<commit_before>const headers = {
  "strict-transport-security": "max-age=31536000",
  "content-security-policy": [
    "default-src 'none'",
    "object-src 'none'",
    "base-uri 'none'",
    "form-action 'self'",
    "connect-src 'self'",
    "frame-src 'none'",
    "frame-ancestors 'none'",
    "img-src 'self'",
    "font-src 'self'",
    "script-src " + [
      "'self'",
    ].join(" "),
    "style-src " + [
      "'self'",
    ].join(" "),
    "style-src-elem " + [
      "'self'",
      "https://trellis.getto.systems/css",
      "'<KEY>",
      "'<KEY>",
    ].join(" "),
  ].join(";"),
  "x-content-type-options": "nosniff",
  "x-frame-options": "DENY",
  "x-xss-protection": "1; mode=block",
  "referrer-policy": "same-origin",
};

console.log(JSON.stringify(Object.keys(headers).reduce((acc,key) => {
  acc["header-" + key] = headers[key];
  return acc;
}, {})));
<commit_msg>fix: CSP<commit_after>const headers = {
  "strict-transport-security": "max-age=31536000",
  "content-security-policy": [
    "default-src 'none'",
    "object-src 'none'",
    "base-uri 'none'",
    "form-action 'self'",
    "connect-src 'self'",
    "frame-src 'none'",
    "frame-ancestors 'none'",
    "img-src 'self'",
    "font-src 'self'",
    "script-src " + [
      "'self'",
    ].join(" "),
    "style-src " + [
      "'self'",
    ].join(" "),
    "style-src-elem " + [
      "'self'",
      "https://trellis.getto.systems/css/",
      "'sha256-47DEQpj8HBSa+/<KEY>='",
      "'sha256-2A5Wtu5POsS6Hj3CQs8vKYei6omWRq7MzlUZF7VwmHs='",
    ].join(" "),
  ].join(";"),
  "x-content-type-options": "nosniff",
  "x-frame-options": "DENY",
  "x-xss-protection": "1; mode=block",
  "referrer-policy": "same-origin",
};

console.log(JSON.stringify(Object.keys(headers).reduce((acc,key) => {
  acc["header-" + key] = headers[key];
  return acc;
}, {})));

{'fraction_non_alphanumeric': 0.2502708559046587, 'fraction_numerical': 0.01950162513542795, 'mean_word_length': 2.980603448275862, 'pattern_counts': {'":': 12, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1405107', 'n_tokens_mistral': 747, 'n_tokens_neox': 746, 'n_words': 103}