fix(csp): ws connection during dev uses SYNC_PORT only (#14483)
This commit is contained in:
committed by
mrugesh mohapatra
parent
2913c5c353
commit
36ce006aac
@ -5,7 +5,7 @@ let trusted = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const host = process.env.HOST || 'localhost';
|
const host = process.env.HOST || 'localhost';
|
||||||
const port = process.env.PORT || process.env.SYNC_PORT || '3000';
|
const port = process.env.SYNC_PORT || '3000';
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
trusted = trusted.concat([
|
trusted = trusted.concat([
|
||||||
|
Reference in New Issue
Block a user