Always underline the settings link

I've also simplified the content security policy a bit
to make it less of a hassle.
This commit is contained in:
Ivan R. 2023-07-22 21:43:54 +05:00
parent 5cb00632e6
commit 3f41e605cb
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
{{if not .groups}}
<p>
You don't have any links.
Go to <a href="/settings">settings</a> and create one.
Go to <a href="/settings" style="text-decoration: underline">settings</a> and create one.
</p>
{{else}}
<a href="/settings">Settings</a>

View file

@ -10,5 +10,5 @@ func SecurityHeadersMiddleware(c *gin.Context) {
c.Writer.Header().Set("X-Frame-Options", "SAMEORIGIN")
c.Writer.Header().Set("X-Content-Type-Options", "nosniff")
c.Writer.Header().Set("Referrer-Policy", "same-origin")
c.Writer.Header().Set("Content-Security-Policy", "default-src 'self'")
c.Writer.Header().Set("Content-Security-Policy", "script-src 'self'; ")
}