Skip to content

Commit

Permalink
fix: add nounce to external styleshet in case url is concidered inval…
Browse files Browse the repository at this point in the history
…id by chromium (like `.dev/test.css`)
  • Loading branch information
TheBigRoomXXL committed Jan 15, 2025
1 parent b3f6fe3 commit f47b3c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ go.work
**html
!built-in
tmp
.dev
2 changes: 1 addition & 1 deletion built-in
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
</style>

{{if .Metadata.stylesheet}}
<link rel="stylesheet" type="text/css" href="{{.Metadata.stylesheet}}">
<link rel="stylesheet" type="text/css" href="{{.Metadata.stylesheet}}", nonce="{{.Metadata.nonce}}">
{{end}}
</head>

Expand Down

0 comments on commit f47b3c4

Please sign in to comment.