Skip to content

fix: use 'NG_ALLOWED_HOSTS=localhost' for serving SSR locally#21214

Open
Platonn wants to merge 1 commit intofeature/CXSPA-12264_angular-sec-upgradefrom
feature/CXSPA-12264_angular-sec-upgrade--add-NG_ALLOWED_HOSTS
Open

fix: use 'NG_ALLOWED_HOSTS=localhost' for serving SSR locally#21214
Platonn wants to merge 1 commit intofeature/CXSPA-12264_angular-sec-upgradefrom
feature/CXSPA-12264_angular-sec-upgrade--add-NG_ALLOWED_HOSTS

Conversation

@Platonn
Copy link
Copy Markdown
Contributor

@Platonn Platonn commented Mar 4, 2026

Otherwise, Angular SSR fails with error that NG_ALLOWED_HOSTS is not defined.
It addresses the breaking change introduced by Angular 21.2.0 security fix:
angular/angular-cli#32516

PS. related docs PR: SAP/spartacus-docs#1598

@Platonn Platonn requested a review from a team as a code owner March 4, 2026 12:25
@Platonn Platonn changed the title fix: use 'NG_ALLOWED_HOSTS=localhost' for serving SSR, otherwise throws an error with new Angular 21.2.0 fix: use 'NG_ALLOWED_HOSTS=localhost' for serving SSR Mar 4, 2026
@Platonn Platonn changed the title fix: use 'NG_ALLOWED_HOSTS=localhost' for serving SSR fix: use 'NG_ALLOWED_HOSTS=localhost' for serving SSR locally Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant