send httpUnsafeOrigin via /api/config

This commit is contained in:
ansuz
2018-01-23 16:41:54 +01:00
parent 044384a576
commit acd5574008
2 changed files with 3 additions and 0 deletions

View File

@@ -150,6 +150,7 @@ app.get('/api/config', function(req, res){
websocketPath: config.useExternalWebsocket ? undefined : config.websocketPath,
websocketURL:'ws' + ((useSecureWebsockets) ? 's' : '') + '://' + host + ':' +
websocketPort + '/cryptpad_websocket',
httpUnsafeOrigin: config.httpUnsafeOrigin,
}, null, '\t'),
'obj.httpSafeOrigin = ' + (function () {
if (config.httpSafeOrigin) { return config.httpSafeOrigin; }