Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultContentSecurityPolicy = "frame-ancestors 'none'; object-src 'none'; base-uri 'self'"
DefaultContentSecurityPolicy restricts only what is the same for every deployment: framing, plugins and <base>. Which script, style and connect sources the dashboard needs depends on the deployment (analytics, support widget, error reporting), so those are left to an override.
Variables ¶
This section is empty.
Functions ¶
func NewStaticFileServer ¶
NewStaticFileServer serves the dashboard. contentSecurityPolicy is sent as the Content-Security-Policy header; an empty value sends none.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.