Skip to content

Commit a4deca2

Browse files
committed
fixup! fix(@angular/ssr): support '*' in allowedHosts and warn about security risks
1 parent 835c471 commit a4deca2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/angular/ssr/src/app-engine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ export class AngularAppEngine {
9898
// eslint-disable-next-line no-console
9999
console.warn(
100100
'Allowing all hosts via "*" is a security risk. This configuration should only be used when ' +
101-
'validation for "Host" and "X-Forwarded-Host" headers is performed in another layer.',
101+
'validation for "Host" and "X-Forwarded-Host" headers is performed in another layer, such as a load balancer or reverse proxy. ' +
102+
'For more information see: https://angular.dev/best-practices/security#preventing-server-side-request-forgery-ssrf',
102103
);
103104
}
104105

0 commit comments

Comments
 (0)