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

前端 未结 3 1394
挽巷
挽巷 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:03

    I have to write in an exception rule for the web api service based on where the web api was located within same area :/

    Notice this line

      
    

    web.config for angular 5

    
    
    
        
        
            
            
            
            
            
            
            
        
        
    
    
    
    

提交回复
热议问题