Convert a parsed CSP into a data frame of directives and values

# S3 method for csp
as.data.frame(x, row.names = NULL, optional = NULL,
  include_origin = TRUE, ...)

Arguments

x

a csp object created with fetch_csp() or parse_csp()

row.names, optional, ...

ignored

include_origin

if the csp object has an origin URL should it be included in the data frame? Default: TRUE

References

Content Security Policy Level 3