From 4e20639fa0486f0dec82e9b4d3719bd8f62a885b Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 4 Mar 2021 11:07:12 +0530 Subject: [PATCH] revert example config to current default, but provide a more detailed comment --- config/config.example.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/config.example.js b/config/config.example.js index 6a8422b0c..9729ca93f 100644 --- a/config/config.example.js +++ b/config/config.example.js @@ -45,8 +45,16 @@ module.exports = { * In such a case this should be also handled by NGINX, as documented in * cryptpad/docs/example.nginx.conf (see the $main_domain variable) * + * Note: you may provide multiple origins for the purpose of accessing + * a development instance via different URLs, like so: + * httpUnsafeOrigin: 'http://127.0.0.1:3000/ http://localhost:3000/', + * + * Such configuration is not recommended for production instances, + * as the development team does not actively test such configuration + * and it may have unintended consequences in practice. + * */ - httpUnsafeOrigin: 'http://127.0.0.1:3000/ http://localhost:3000', + httpUnsafeOrigin: 'http://localhost:3000/', /* httpSafeOrigin is the URL that is used for the 'sandbox' described above. * If you're testing or developing with CryptPad on your local machine then