Angular 2 - always redirect to https:// instead of using http://

前端 未结 3 1393
挽巷
挽巷 2021-01-19 23:57

I have an Angular 2 app that I only want to run on https. What is the best way to redirect addresses that use http to use https instead?

3条回答
  •  不思量自难忘°
    2021-01-20 00:06

    As per your question you will have to force https for you domain from the server side. As you mentioned IIS in your comment here are some of the ways that you can achieve force HTTps.

    https://www.sslshopper.com/iis7-redirect-http-to-https.html

提交回复
热议问题