Skip to content

New @angular/ssr is missing REQUEST and RESPONSE tokens #26110

@sonallux

Description

@sonallux

Which @angular/* package(s) are the source of the bug?

platform-server, Don't known / other

Is this a regression?

No

Description

Angular Universal exposed two injection tokens REQUEST and RESPONSE from @nguniversal/express-engine/tokens. Also mentioned here in the ngExpressEngine documentation. `

Unfortunately the new SSR solution with @angular/ssr does not expose these anymore. Can you add them back or how should I handle use cases where I need access to the raw request object to read headers and/or cookies?

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.0.0-rc.0
Node: 18.17.1
Package Manager: npm 9.6.7
OS: win32 x64

Angular: 17.0.0-rc.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... platform-server, router, ssr

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-rc.0
@angular-devkit/build-angular   17.0.0-rc.0
@angular-devkit/core            17.0.0-rc.0
@angular-devkit/schematics      17.0.0-rc.0
@schematics/angular             17.0.0-rc.0
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.0

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions