Access-Control-Allow-Origin error when getting Wordpress posts in Phonegap app

后端 未结 4 1398
南笙
南笙 2021-02-09 22:42

Hopefully someone can help me to resolve the following problem while developing a mobile app in phonegap. I am attempting to read posts from a wordpress installation but I get t

4条回答
  •  执笔经年
    2021-02-09 23:38

    in plist file add
    
     NSAppTransportSecurity
    
    
    
        NSExceptionDomains
             
                 yourdominename.com
                        
                          
                          NSIncludesSubdomains
                          
                          
                          NSTemporaryExceptionAllowsInsecureHTTPLoads
                          
                          
                          NSTemporaryExceptionMinimumTLSVersion
                          TLSv1.1
                    
              
    
    

    in config file

     
    

提交回复
热议问题