feat: add config option to disable external link warning
Since it is heavily requested by users, this adds a new config option to disable the previously introduced external link warning. Be aware however, that disabling this config option weakens the security of your HedgeDoc instance and is therefore only recommended for closed trustworthy user groups. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
committed by
Philip Molares
parent
d20619315e
commit
0ebf0dbc6b
@@ -113,6 +113,7 @@ statusRouter.get('/config', function (req, res) {
|
||||
linkifyHeaderStyle: config.linkifyHeaderStyle,
|
||||
cookiePolicy: config.cookiePolicy,
|
||||
enableUploads: config.enableUploads,
|
||||
externalLinkWarning: config.externalLinkWarning,
|
||||
externalLinkWhitelist: config.externalLinkWhitelist,
|
||||
userToken: req.user ? req.user.deleteToken : ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user