Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHandler ¶
func MainHandler ¶
func MainHandler(w http.ResponseWriter, r *http.Request)
func ReportHandler ¶
Types ¶
type BSONReportContent ¶
type BSONReportContent struct { DocumentURI string `json:"documentURI" bson:"documentURI"` Referrer string `json:"referrer" bson:"referrer"` BlockedURI string `json:"blockedURI" bson:"blockedURI"` ViolatedDirective string `json:"violatedDirective" bson:"violatedDirective"` OriginalPolicy string `json:"originalPolicy" bson:"originalPolicy"` }
type Report ¶
type Report struct {
Content ReportContent `json:"csp-report" bson:"content"`
}
type ReportContent ¶
type ReportContent struct { DocumentURI string `json:"document-uri" bson:"documentURI"` Referrer string `json:"referrer" bson:"referrer"` BlockedURI string `json:"blocked-uri" bson:"blockedURI"` ViolatedDirective string `json:"violated-directive" bson:"violatedDirective"` OriginalPolicy string `json:"original-policy" bson:"originalPolicy"` }
Click to show internal directories.
Click to hide internal directories.