Security middlewares for ambiorix.
You can install the development version of agris from GitHub with:
# install.packages("remotes")
remotes::install_github("devOpifex/agris")
The package includes the following middlewares.
use_content_security_policy()
use_cross_origin_embedder_policy()
use_cross_origin_opener_policy()
use_cross_origin_resource_policy()
use_dns_prefetch_control()
use_frame_options()
use_hide_powered_by()
use_content_type_options()
use_xss_protection()
use_download_options()
use_strict_transport_security()
use_origin_agent_cluster()
use_permitted_cross_domain_policies()
Call agris()
to use all of them.
Simply use the agris
function to use all security middlewares.
library(agris)
library(ambiorix)
app <- Ambiorix$new()
app$use(agris())
app$get("/", \(req, res){
res$send("Using {ambiorix}!")
})
app$start()