diff options
| author | Paul Duncan <pabs@pablotron.org> | 2022-01-27 23:22:48 -0500 | 
|---|---|---|
| committer | Paul Duncan <pabs@pablotron.org> | 2022-01-27 23:22:48 -0500 | 
| commit | d98b24264c0be06e6096dd21ad55d07468851454 (patch) | |
| tree | 00878f1d45f030083ea82c1c96b6d99cef1bdee9 /content/posts | |
| parent | e46e1dee144e0419550c092ca63ff50189abd618 (diff) | |
| download | pablotron.org-d98b24264c0be06e6096dd21ad55d07468851454.tar.xz pablotron.org-d98b24264c0be06e6096dd21ad55d07468851454.zip | |
posts/2021-10-25-the-nuclear-option-no-more-unsafe-inline.md: use pe-figure, add webp
Diffstat (limited to 'content/posts')
| -rw-r--r-- | content/posts/2021-10-25-the-nuclear-option-no-more-unsafe-inline.md | 18 | 
1 files changed, 11 insertions, 7 deletions
| diff --git a/content/posts/2021-10-25-the-nuclear-option-no-more-unsafe-inline.md b/content/posts/2021-10-25-the-nuclear-option-no-more-unsafe-inline.md index a2f07fd..71e3234 100644 --- a/content/posts/2021-10-25-the-nuclear-option-no-more-unsafe-inline.md +++ b/content/posts/2021-10-25-the-nuclear-option-no-more-unsafe-inline.md @@ -3,6 +3,16 @@ slug: the-nuclear-option-no-more-unsafe-inline  title: "The Nuclear Option (No More unsafe-inline)"  date: "2021-10-25T18:50:13-04:00"  draft: false + +pics: +  securityheaders: +    css: "image" +    tip: "Updated Security Headers scan result." +    sources: +      - "/files/posts/the-nuclear-option-no-more-unsafe-inline/securityheaders.webp" +      - src: "/files/posts/the-nuclear-option-no-more-unsafe-inline/securityheaders.png" +        width: 1218 +        height: 248  ---  As you can see from the [last post][], I went with the nuclear option  and created a [Hugo table shortcode][git], then did the following: @@ -24,13 +34,7 @@ Header append "Content-Security-Policy" "default-src 'self'; img-src 'self' http  And here is the updated [Security Headers][securityheaders] scan result: -[{{< figure -  src="/files/posts/the-nuclear-option-no-more-unsafe-inline/securityheaders.png" -  class=image -  width=1218 -  height=248 -  caption=" Updated Security Headers scan result." ->}}][securityheaders-results] +[{{< pe-figure "securityheaders" >}}][securityheaders-results]  A couple of recommendations for folks getting started with [Hugo][]: | 
