App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure.

后端 未结 2 1750
别那么骄傲
别那么骄傲 2021-01-29 08:42

Supposedly temporary exceptions can be configured via your app\'s Info.plist file. Following other answers, I added this entry to the info.plist but it does not help (even worse

2条回答
  •  终归单人心
    2021-01-29 09:00

    @SamHeather I tried to post this in Comments, but apparently too long.. This is white listing Facebook domains which is mandatory for the Facebook SDK integration. You can change these of course to fit your needs.

    Currently whitelisted are: akamaidhd.net, facebook.com, and fbcdn.net.

    You could change these like such for example:

    (your domain name) 
                    
                        NSIncludesSubdomains
                        
                        NSThirdPartyExceptionRequiresForwardSecrecy
                        
                    
    

    Facebook white listing below:

    NSAppTransportSecurity
    
            NSAllowsArbitraryLoads
            
            NSExceptionDomains
            
                akamaihd.net
                
                    NSIncludesSubdomains
                    
                    NSThirdPartyExceptionRequiresForwardSecrecy
                    
                
                facebook.com
                
                    NSIncludesSubdomains
                    
                    NSThirdPartyExceptionRequiresForwardSecrecy
                    
                
                fbcdn.net
                
                    NSIncludesSubdomains
                    
                    NSThirdPartyExceptionRequiresForwardSecrecy
                    
                
            
        
    

提交回复
热议问题