csp: Define a content security policy

Description Usage Arguments Format Examples

Description

Define a content security policy

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17

Arguments

...

CSP directives

Format

An object of class csp_option of length 1.

Examples

1
2
3
4
5
6
7
# this is a default CSP that works with shiny:
csp <- content_security_policy(
  default_src(self),
  script_src(unsafe_inline),
  style_src(unsafe_inline),
  img_src(self, "data:")
)

dirkschumacher/ContentSecurityPolicy documentation built on Jan. 1, 2020, 12:54 a.m.