We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7446fdb commit bc8b78aCopy full SHA for bc8b78a
src/index.tsx
@@ -36,10 +36,16 @@ const App = () => {
36
37
// Prevent using incompatible environment and deployment
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);
44
if (
45
// https://example.com
46
!pncUrl.startsWith(window.location.origin) &&
- 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) &&
49
// example.com
50
window.location.hostname !== 'localhost'
51
) {
0 commit comments