Skip to content

Commit 2cb9c21

Browse files
author
Andrea Barbasso
committed
[DSC-2858] fix e2e tests error
1 parent 8fa75fe commit 2cb9c21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function serverSideRender(req, res, next, sendToUser: boolean = true) {
293293
// "allowedHosts" specifies which hosts are allowed to be rendered via SSR.
294294
// By default, this is set to the host of the UI's baseUrl.
295295
const commonEngine = new CommonEngine({ enablePerformanceProfiler: environment.ssr.enablePerformanceProfiler,
296-
allowedHosts: [ new URL(environment.ui.baseUrl).hostname ],
296+
allowedHosts: [ new URL(environment.ui.baseUrl).hostname, '127.0.0.1', 'localhost' ],
297297
});
298298
// Render the page via SSR (server side rendering)
299299
commonEngine

0 commit comments

Comments
 (0)