httpsec package and flash helpers
httpsec: security headers (yamase's set as default), Host gate (empty Host rejected; active without login or with configured hosts), SafeNext, CookiePath, SecureCookies. layout: FlashURL/RedirectFlash/ApplyFlash/ WithoutFlash over query parameters, an info kind, AppearanceBack without the flash parameters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d5feb21a1
commit
d6bf6f94d8
8 files changed
+489
-17
No files matched your search
@@ -86,7 +86,7 @@ type PageHeader struct {
|
||||
NavItems []NavItem
|
||||
ActiveNav string
|
||||
Flash string
|
||||
FlashKind string // "ok" or "error"; meaningless if Flash == ""
|
||||
FlashKind string // FlashOK, FlashError or FlashInfo (flash.go); meaningless if Flash == ""
|
||||
Username string
|
||||
LogoutPath string // BasePath-relative, e.g. "/logout"; rendered as a POST form (never a GET link); "" hides it
|
||||
NavbarBeforeBrand template.HTML // extra markup rendered before the brand link, e.g. a mobile sidebar toggle
|
||||
|
||||
Reference in new issue
Block a user