fix: keep public security headers authoritative
This commit is contained in:
@@ -39,6 +39,9 @@ func TestPublicPageNeedsNoSession(t *testing.T) {
|
||||
if w.Code != http.StatusOK || w.Body.String() != "public app" {
|
||||
t.Fatalf("status=%d body=%q", w.Code, w.Body.String())
|
||||
}
|
||||
if w.Header().Get("Cache-Control") != "no-store" || w.Header().Get("X-Frame-Options") != "DENY" {
|
||||
t.Fatal("public application safety headers are missing")
|
||||
}
|
||||
}
|
||||
|
||||
func TestPublicAPIRejectsWrongOrigin(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user