File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,16 @@ const App = () => {
36
36
37
37
// Prevent using incompatible environment and deployment
38
38
const pncUrl = webConfigService . getPncUrl ( ) ;
39
+ console . log ( pncUrl ) ;
40
+ console . log ( window . location . origin ) ;
41
+ console . log ( process . env . REACT_APP_WEB_UI_URL ) ;
42
+ console . log ( process . env . REACT_APP_WEB_SECONDARY_UI_URL ) ;
43
+ console . log ( window . location . hostname ) ;
39
44
if (
40
45
// https://example.com
41
46
! pncUrl . startsWith ( window . location . origin ) &&
42
- process . env . REACT_APP_WEB_UI_URL !== window . location . origin &&
47
+ ( process . env . REACT_APP_WEB_UI_URL !== window . location . origin ||
48
+ process . env . REACT_APP_WEB_SECONDARY_UI_URL !== window . location . origin ) &&
43
49
// example.com
44
50
window . location . hostname !== 'localhost'
45
51
) {
You can’t perform that action at this time.
0 commit comments