Secure a static HTML page
secure_static()
can be used to secure any HTML
page using polished
. It is often used to add polished
to .Rmd
htmloutput
and flexdashboards.
secure_static( html_file_path, global_sessions_config_args, sign_out_button = shiny::actionLink("sign_out", "Sign Out", icon = shiny::icon("sign-out-alt"), class = "polished_sign_out_link") )
html_file_path |
the path the to HTML file. See the details for more info. |
global_sessions_config_args |
arguments to be passed to |
sign_out_button |
action button or link with |
To secure a static HTML page, place the HTML page in a folder named "www"
and call secure_static()
from a file named app.R
. The file structure should
look like:
app.R
www/
index.html
See an example here: https://github.com/Tychobra/polished_example_apps/tree/master/05_flex_dashboard
a Shiny app object
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.