Title: New `@angular/ssr` is missing `REQUEST` and `RESPONSE` tokens · Issue #26110 · angular/angular-cli · GitHub
Open Graph Title: New `@angular/ssr` is missing `REQUEST` and `RESPONSE` tokens · Issue #26110 · angular/angular-cli
X Title: New `@angular/ssr` is missing `REQUEST` and `RESPONSE` tokens · Issue #26110 · angular/angular-cli
Description: 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....
Open Graph Description: 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 ...
X Description: 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 RESPO...
Opengraph URL: https://github.com/angular/angular-cli/issues/26110
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New `@angular/ssr` is missing `REQUEST` and `RESPONSE` tokens","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nplatform-server, Don't known / other\n\n### Is this a regression?\n\nNo\n\n### Description\n\nAngular Universal exposed two injection tokens `REQUEST` and `RESPONSE` from `@nguniversal/express-engine/tokens`. Also mentioned [here](https://github.com/angular/universal/blob/main/modules/express-engine/README.md#using-the-request-and-response) in the `ngExpressEngine` documentation. `\r\n\r\nUnfortunately 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? \n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 17.0.0-rc.0\r\nNode: 18.17.1\r\nPackage Manager: npm 9.6.7\r\nOS: win32 x64\r\n\r\nAngular: 17.0.0-rc.0\r\n... animations, cdk, cli, common, compiler, compiler-cli, core\r\n... forms, material, platform-browser, platform-browser-dynamic\r\n... platform-server, router, ssr\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1700.0-rc.0\r\n@angular-devkit/build-angular 17.0.0-rc.0\r\n@angular-devkit/core 17.0.0-rc.0\r\n@angular-devkit/schematics 17.0.0-rc.0\r\n@schematics/angular 17.0.0-rc.0\r\nrxjs 7.8.1\r\ntypescript 5.2.2\r\nzone.js 0.14.0\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/sonallux","@type":"Person","name":"sonallux"},"datePublished":"2023-10-23T17:20:01Z","url":"https://github.com/angular/angular-cli/issues/26110"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e4afe934-a26d-04f6-99f5-f409f07c01da |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCD0:3075D4:EA48C6:1329B5F:6AED59F6 |
| html-safe-nonce | 0209ad658b8103ea36b0188839426a2fc47887b9abe83c3a155b0d0d1eea6937 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0QwOjMwNzVENDpFQTQ4QzY6MTMyOUI1Rjo2QUVENTlGNiIsInZpc2l0b3JfaWQiOiI1NzU1MDEwNTYyMTM5MTgzNjA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a43828c3c3cc196af56bec5f2f415193d42d2f428be4fc7708dcebd7dd8981ee |
| hovercard-subject-tag | issue:1958000382 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/26110/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5417e7de0f7d779f9af9ae6d95aba0afa7562f56005a05aa92cee8692af3ab61/angular/angular-cli/issues/26110 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5417e7de0f7d779f9af9ae6d95aba0afa7562f56005a05aa92cee8692af3ab61/angular/angular-cli/issues/26110 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sonallux |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width