René's URL Explorer Experiment


Title: HttpClient request fails in development during SSR with SSL enabled · Issue #31710 · angular/angular-cli · GitHub

Open Graph Title: HttpClient request fails in development during SSR with SSL enabled · Issue #31710 · angular/angular-cli

X Title: HttpClient request fails in development during SSR with SSL enabled · Issue #31710 · angular/angular-cli

Description: Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description When using ng serve with SSR and an SSL certificate the HttpCl...

Open Graph Description: Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description When using ng serve wi...

X Description: Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description When using ng serve wi...

Opengraph URL: https://github.com/angular/angular-cli/issues/31710

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"HttpClient request fails in development during SSR with SSL enabled","articleBody":"### Command\n\nserve\n\n### Is this a regression?\n\n- [ ] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n_No response_\n\n### Description\n\nWhen using `ng serve` with SSR and an SSL certificate the HttpClient request fails during SSR\n\nGitHub repo: https://github.com/brandonroberts/angular-ssl-assets\n\n\n\n### Minimal Reproduction\n\n## Setup\n\n1. Install dependencies\n\n```sh\nnpm install\n```\n\n2. Run application\n\n```sh\nnpm start\n```\n\n3. Navigate to `https://localhost:4430` and notice the error in the command line console, and the flash of data on the page.\n\n\n## Workaround\n\nThe workaround is to run `NODE_TLS_REJECT_UNAUTHORIZED=0 ng serve` \n\n1. Run application\n\n```sh\nnpm run start:cert\n```\n\n2. Navigate to `https://localhost:4430` and notice the Node warning in the command line console, but no flash of data on the page.\n\n\n\n### Exception or Error\n\n```text\nERROR HttpErrorResponse {\n  headers: _HttpHeaders {\n    headers: Map(0) {},\n    normalizedNames: Map(0) {},\n    lazyInit: undefined,\n    lazyUpdate: null\n  },\n  status: 0,\n  statusText: 'Unknown Error',\n  url: 'https://localhost:4430/assets/data.json',\n  ok: false,\n  type: undefined,\n  redirected: undefined,\n  name: 'HttpErrorResponse',\n  message: 'Http failure response for https://localhost:4430/assets/data.json: 0 undefined',\n  error: TypeError: fetch failed\n      at node:internal/deps/undici/undici:13510:13\n      at _ZoneDelegate.invoke (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:336:158)\n      at ZoneImpl.run (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:105:35)\n      at eval (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:1040:30)\n      at _ZoneDelegate.invokeTask (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:362:171)\n      at ZoneImpl.runTask (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:143:37)\n      at drainMicroTaskQueue (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:522:23)\n      at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {\n    [cause]: Error: unable to verify the first certificate\n        at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)\n        at _ZoneDelegate.invokeTask (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:362:171)\n        at ZoneImpl.runTask (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:143:37)\n        at invokeTask (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:439:26)\n        at TLSSocket.ZoneTask.invoke (/Users/computer/projects/angular-ssl-assets/.angular/cache/20.3.9/angular-ssl-assets/vite/deps_ssr/zone__js_node.js:428:38)\n        at TLSSocket.emit (node:events:518:28)\n        at TLSSocket._finishInit (node:_tls_wrap:1078:8)\n        at ssl.onhandshakedone (node:_tls_wrap:864:12) {\n      code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'\n    }\n  }\n}\n```\n\n### Your Environment\n\n```text\nAngular: 20.3.9\n... build, cli, common, compiler, compiler-cli, core, forms\n... platform-browser, platform-server, router, ssr\n\nPackage                      Version\n------------------------------------\n@angular-devkit/architect    0.2003.9\n@angular-devkit/core         20.3.9\n@angular-devkit/schematics   20.3.9\n@schematics/angular          20.3.9\nrxjs                         7.8.2\ntypescript                   5.9.3\nzone.js                      0.15.1\n```\n\n### Anything else relevant?\n\nIts a self-signed certificate for local development using `mkcert localhost`.","author":{"url":"https://github.com/brandonroberts","@type":"Person","name":"brandonroberts"},"datePublished":"2025-11-05T17:54:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/31710/angular-cli/issues/31710"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:71e247a1-8a0e-c4b3-a75a-0afe706aa31d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC34C:3C7D7F:2131E7C:2D300A7:696ACE5D
html-safe-nonce4506a1b432be0089ec396eed1c81af8e979f60aef47e0285a79b2147367bf8d2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzRDOjNDN0Q3RjoyMTMxRTdDOjJEMzAwQTc6Njk2QUNFNUQiLCJ2aXNpdG9yX2lkIjoiMzYwNDI1NDExMDM3OTU5MzMwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2fc2e635b80e364da89c240713a29d9ab1967ddb494205d39aff090028333c46
hovercard-subject-tagissue:3592195191
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/31710/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4ebf48404a4f1d8ea78e2e82f5a510d3287b89357d81bc48f227e71d069175b0/angular/angular-cli/issues/31710
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4ebf48404a4f1d8ea78e2e82f5a510d3287b89357d81bc48f227e71d069175b0/angular/angular-cli/issues/31710
og:image:altCommand serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description When using ng serve wi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrandonroberts
hostnamegithub.com
expected-hostnamegithub.com
Nonec785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec718a376fcf780eb22089171adb84a543f660bf7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/31710#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F31710
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F31710
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/31710
Reloadhttps://github.com/angular/angular-cli/issues/31710
Reloadhttps://github.com/angular/angular-cli/issues/31710
angular https://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Notifications https://github.com/login?return_to=%2Fangular%2Fangular-cli
Fork 11.9k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Star 27k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Code https://github.com/angular/angular-cli
Issues 264 https://github.com/angular/angular-cli/issues
Pull requests 26 https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/angular/angular-cli/security
Please reload this pagehttps://github.com/angular/angular-cli/issues/31710
Insights https://github.com/angular/angular-cli/pulse
Code https://github.com/angular/angular-cli
Issues https://github.com/angular/angular-cli/issues
Pull requests https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/31710
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/31710
#31723https://github.com/angular/angular-cli/pull/31723
#31722https://github.com/angular/angular-cli/pull/31722
HttpClient request fails in development during SSR with SSL enabledhttps://github.com/angular/angular-cli/issues/31710#top
#31723https://github.com/angular/angular-cli/pull/31723
#31722https://github.com/angular/angular-cli/pull/31722
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
devkit/build-angular:dev-serverhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Adev-server%22
https://github.com/brandonroberts
https://github.com/brandonroberts
brandonrobertshttps://github.com/brandonroberts
on Nov 5, 2025https://github.com/angular/angular-cli/issues/31710#issue-3592195191
https://github.com/brandonroberts/angular-ssl-assetshttps://github.com/brandonroberts/angular-ssl-assets
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
devkit/build-angular:dev-serverhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Adev-server%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.