Ionic requests return 404 only on android, in Chrome it works fine

前端 未结 4 1138
梦如初夏
梦如初夏 2020-12-13 09:00

So, i have cloned the tutorial app repo from ionic. I ran

ionic start conference sidemenu

and then i added a simple $http.get(\'myserver\')

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 09:27

    The thing is that there were some major changes in Cordova 4.0.0:

    Major Changes [...] - Whitelist functionality is now provided via plugin (CB-7747) The whitelist has been enhanced to be more secure and configurable Setting of Content-Security-Policy is now supported by the framework (see details in plugin readme) You will need to add the new cordova-plugin-whitelist plugin Legacy whitelist behaviour is still available via plugin (although not recommended).

    So I installed the Cordova Whitelist plugin. And added

    
    

    in my config.xml file.

提交回复
热议问题