Versions in this module Expand all Collapse all v0 v0.0.1 Apr 9, 2020 Changes in this version + func GenerateContentSecurityPolicy(fileContents []byte, cspEntries CSPEntries) string + type CSPEntries struct + Default []string + Image []string + Script []string + Style []string + func (c CSPEntries) String() string + type Handler struct + FileSystem http.FileSystem + NotFoundHandler http.Handler + RootHandler http.Handler + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type SinglePageAppHandler struct + BaseCSPEntries CSPEntries + DisableCSPHeader bool + FileName string + FileSystem http.FileSystem + func (s *SinglePageAppHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)