mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Allow data: URI images in Hugo devserver CSP
This commit is contained in:
parent
be77c33081
commit
dc60da124a
1 changed files with 3 additions and 1 deletions
|
@ -64,6 +64,8 @@ ordered = true
|
||||||
[mediaTypes]
|
[mediaTypes]
|
||||||
[mediaTypes."text/gemini"]
|
[mediaTypes."text/gemini"]
|
||||||
suffixes = ["gmi"]
|
suffixes = ["gmi"]
|
||||||
|
[mediaTypes."application/manifest+json"]
|
||||||
|
suffixes = ["webmanifest"]
|
||||||
|
|
||||||
[outputFormats]
|
[outputFormats]
|
||||||
[outputFormats.Gemini]
|
[outputFormats.Gemini]
|
||||||
|
@ -123,6 +125,6 @@ Referrer-Policy = "no-referrer"
|
||||||
X-XSS-Protection = "1; mode=block"
|
X-XSS-Protection = "1; mode=block"
|
||||||
X-FROG-UNSAFE = "1"
|
X-FROG-UNSAFE = "1"
|
||||||
X-UA-Compatible = "IE=edge"
|
X-UA-Compatible = "IE=edge"
|
||||||
Content-Security-Policy = "default-src 'none'; img-src 'self' https://seirdy.one; style-src 'self'; script-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'; manifest-src 'self'; upgrade-insecure-requests;"
|
Content-Security-Policy = "default-src 'none'; img-src 'self' https://seirdy.one data:; style-src 'self'; script-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'; manifest-src 'self'; upgrade-insecure-requests;"
|
||||||
Permissions-Policy = "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"
|
Permissions-Policy = "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"
|
||||||
Cache-Control = "max-age=120, no-transform"
|
Cache-Control = "max-age=120, no-transform"
|
||||||
|
|
Loading…
Reference in a new issue