SSR not working with HTTPS API URL
See original GitHub issueNote: for support questions, please use one of these channels: https://github.com/angular/universal/blob/master/CONTRIBUTING.md#question. This repository’s issues are reserved for feature requests and bug reports. Also, Preboot has moved to https://github.com/angular/preboot - please make preboot-related issues there.
- I’m submitting a …
- [ ] bug report
- [ ] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.
- What modules are related to this Issue?
- [ ] aspnetcore-engine
- [ ] express-engine
- [ ] hapi-engine
-
Do you want to request a feature or report a bug?
-
What is the current behavior?
-
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by creating a github repo.
-
What is the expected behavior?
-
What is the motivation / use case for changing the behavior?
-
Please tell us about your environment:
- Angular version: 4.1
- Browser: [all ]
- Language: [TypeScript 2.3.1]
- OS: [all ]
- Platform: [NodeJs | PHP]
- Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
SSR fail when we using https api url for seo meta information. Using http working perfect.
Any solution please help me regards this.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:45 (3 by maintainers)
It worked for me after I added this line to my server.ts file “process.env.NODE_TLS_REJECT_UNAUTHORIZED = ‘0’;”
Hi all. I found the problem for me. On my server I setup port forwarding by iptables
iptables --table nat --append PREROUTING --protocol tcp --dport 443 --jump REDIRECT --to-ports 3000
That is, my web server is running on port 3000. I did not take this into account when copying the UniversalInterceptor code from the official documentation
Now I fixed it and SSR works correctly. My
universal-interceptor.ts