Support x-frame-options in appconfig.ejs template

This commit is contained in:
Johannes Zellner
2016-07-14 14:01:25 +02:00
parent 4b40084c7f
commit 66049a9e2d
4 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -45,7 +45,8 @@ function configureAdmin(certFilePath, keyFilePath, callback) {
vhost: config.adminFqdn(),
endpoint: 'admin',
certFilePath: certFilePath,
keyFilePath: keyFilePath
keyFilePath: keyFilePath,
xFrameOptions: 'SAMEORIGIN'
};
var nginxConf = ejs.render(NGINX_APPCONFIG_EJS, data);
var nginxConfigFilename = path.join(paths.NGINX_APPCONFIG_DIR, 'admin.conf');
@@ -73,7 +74,8 @@ function configureApp(app, certFilePath, keyFilePath, callback) {
port: app.httpPort,
endpoint: endpoint,
certFilePath: certFilePath,
keyFilePath: keyFilePath
keyFilePath: keyFilePath,
xFrameOptions: 'SAMEORIGIN'
};
var nginxConf = ejs.render(NGINX_APPCONFIG_EJS, data);