mirror of
https://github.com/ordinary-dev/phoenix
synced 2024-09-19 19:30:28 +05:00
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:
parent
5cb00632e6
commit
3f41e605cb
|
@ -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>
|
||||
|
|
|
@ -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'; ")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue