Description Usage Arguments Format Examples
Define a content security policy
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
... |
CSP directives |
An object of class csp_option
of length 1.
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:")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.