Skip to content

Commit 7cc1871

Browse files
committed
fix(@angular/ssr): allow all hosts in common engine rendering options to prevent validation errors
This is needed due to the angular/angular#68593
1 parent 985e580 commit 7cc1871

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/angular/ssr/node/src/common-engine/common-engine.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ export class CommonEngine {
210210
const commonRenderingOptions = {
211211
url: opts.url,
212212
document,
213+
// Validation is already happened in the render method.
214+
allowedHosts: ['*'],
213215
};
214216

215217
return isBootstrapFn(moduleOrFactory)

0 commit comments

Comments
 (0)