Failed to load resource: net::ERR_CONNECTION_REFUSED Cordova android

后端 未结 1 736
花落未央
花落未央 2020-12-22 05:17

i have developing one android application using cordova ,i have facing the following issue while calling api,kindly help me out this issue

Failed to load res         


        
相关标签:
1条回答
  • 2020-12-22 06:01

    This could be version compatiiblity issue. Check out the answers on a similar issue here

    Else, this could be because you have blocked the API URLs in your application. Set the following values in your config.xml

    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    

    Note: This is not a recommended setting for production. If this solution works for you consider fine-tuning your URLs. Refer Whitelisting URLS - Cordova Documentation for more details on how you can configure this.

    0 讨论(0)
提交回复
热议问题