Browse Source

docs(feature/content-security-policy): provide example allowing unsplash images to load

double-checked and unsplash isn't using cookies (currently)

closes #138
Josh Habdas 7 months ago
parent
commit
cee6134178
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      docs/config.toml

+ 5
- 0
docs/config.toml View File

@@ -52,6 +52,11 @@ footnoteReturnLinkContents = "↩" # Provides a nicer footnote return link
52 52
   mediaSrc = [
53 53
     "https://jhabdas.keybase.pub"
54 54
   ]
55
+  imgSrc = [
56
+    "'self'",
57
+    "data:",
58
+    "https://*.unsplash.com"
59
+  ]
55 60
   scriptSrc = [
56 61
     "'self'",
57 62
     "'unsafe-inline'",

Loading…
Cancel
Save