test_that("multiplication works", {
csp <- content_security_policy(
default_src(self),
script_src(self, unsafe_inline),
style_src(self, unsafe_inline),
img_src(self, "data:")
)
tag <- as_shiny_meta_tag(csp)
expect_equal(tag$name, "meta")
expect_setequal(names(tag$attribs), c("http-equiv", "content"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.