mirror of https://github.com/xwiki-labs/cryptpad
Check httpSafeOrigin in config variable
This commit is contained in:
parent
6b657c47ce
commit
9b3013278b
|
@ -55,7 +55,7 @@ if (process.env.PACKAGE) {
|
||||||
config.httpPort = 3000;
|
config.httpPort = 3000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof(httpSafeOrigin) !== 'string') {
|
if (typeof(config.httpSafeOrigin) !== 'string') {
|
||||||
if (typeof(config.httpSafePort) !== 'number') {
|
if (typeof(config.httpSafePort) !== 'number') {
|
||||||
config.httpSafePort = config.httpPort + 1;
|
config.httpSafePort = config.httpPort + 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue