@ -20,6 +20,15 @@
v - card - info ( color = 'red' )
v - card - info ( color = 'red' )
span Make sure to understand the implications before turning on / off a security feature .
span Make sure to understand the implications before turning on / off a security feature .
v - card - text
v - card - text
v - switch . mt - 3 (
inset
label = 'Block Open Redirect'
color = 'red darken-2'
v - model = 'config.securityOpenRedirect'
persistent - hint
hint = 'Prevents user controlled URLs from directing to websites outside of your wiki. This provides Open Redirect protection.'
)
v - switch . mt - 3 (
v - switch . mt - 3 (
inset
inset
label = 'Block IFrame Embedding'
label = 'Block IFrame Embedding'
@ -145,6 +154,7 @@ export default {
config : {
config : {
uploadMaxFileSize : 0 ,
uploadMaxFileSize : 0 ,
uploadMaxFiles : 0 ,
uploadMaxFiles : 0 ,
securityOpenRedirect : true ,
securityIframe : true ,
securityIframe : true ,
securityReferrerPolicy : true ,
securityReferrerPolicy : true ,
securityTrustProxy : true ,
securityTrustProxy : true ,
@ -175,6 +185,7 @@ export default {
mutation (
mutation (
$uploadMaxFileSize : Int
$uploadMaxFileSize : Int
$uploadMaxFiles : Int
$uploadMaxFiles : Int
$securityOpenRedirect : Boolean
$securityIframe : Boolean
$securityIframe : Boolean
$securityReferrerPolicy : Boolean
$securityReferrerPolicy : Boolean
$securityTrustProxy : Boolean
$securityTrustProxy : Boolean
@ -188,6 +199,7 @@ export default {
updateConfig (
updateConfig (
uploadMaxFileSize : $uploadMaxFileSize ,
uploadMaxFileSize : $uploadMaxFileSize ,
uploadMaxFiles : $uploadMaxFiles ,
uploadMaxFiles : $uploadMaxFiles ,
securityOpenRedirect : $securityOpenRedirect ,
securityIframe : $securityIframe ,
securityIframe : $securityIframe ,
securityReferrerPolicy : $securityReferrerPolicy ,
securityReferrerPolicy : $securityReferrerPolicy ,
securityTrustProxy : $securityTrustProxy ,
securityTrustProxy : $securityTrustProxy ,
@ -210,6 +222,7 @@ export default {
variables : {
variables : {
uploadMaxFileSize : _ . toSafeInteger ( _ . get ( this . config , 'uploadMaxFileSize' , 0 ) ) ,
uploadMaxFileSize : _ . toSafeInteger ( _ . get ( this . config , 'uploadMaxFileSize' , 0 ) ) ,
uploadMaxFiles : _ . toSafeInteger ( _ . get ( this . config , 'uploadMaxFiles' , 0 ) ) ,
uploadMaxFiles : _ . toSafeInteger ( _ . get ( this . config , 'uploadMaxFiles' , 0 ) ) ,
securityOpenRedirect : _ . get ( this . config , 'securityOpenRedirect' , false ) ,
securityIframe : _ . get ( this . config , 'securityIframe' , false ) ,
securityIframe : _ . get ( this . config , 'securityIframe' , false ) ,
securityReferrerPolicy : _ . get ( this . config , 'securityReferrerPolicy' , false ) ,
securityReferrerPolicy : _ . get ( this . config , 'securityReferrerPolicy' , false ) ,
securityTrustProxy : _ . get ( this . config , 'securityTrustProxy' , false ) ,
securityTrustProxy : _ . get ( this . config , 'securityTrustProxy' , false ) ,
@ -241,6 +254,7 @@ export default {
config {
config {
uploadMaxFileSize
uploadMaxFileSize
uploadMaxFiles
uploadMaxFiles
securityOpenRedirect
securityIframe
securityIframe
securityReferrerPolicy
securityReferrerPolicy
securityTrustProxy
securityTrustProxy