mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
feat: add default security permissions policy
This commit is contained in:
parent
aa4fe0c757
commit
dbeee61620
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
{{- $csp_policy := site.Params.security.csp.policy | default "" -}}
|
||||
{{- $csp_report_only := site.Params.security.csp.report_only | default false -}}
|
||||
{{- $permissions_policy := site.Params.security.permissions.policy | default "" -}}
|
||||
{{- $default_perms := "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()" -}}
|
||||
{{- $permissions_policy := site.Params.security.permissions.policy | default $default_perms -}}
|
||||
# Netlify headers
|
||||
# Automatically generated
|
||||
# Documentation: http://bit.ly/netlify-deployment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue