CORS and phonegap apps

后端 未结 4 1611
走了就别回头了
走了就别回头了 2020-11-28 11:10

Do phonegap applications require any CORS changes (like setting Access-Control-Allow-Origin:*) to work? I have a restful API hosted on Heroku and was wondering whether I nee

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 11:41

    As of cordova 5 you will need to add the whitelist plugin

    https://github.com/apache/cordova-plugin-whitelist

    In config.xml add

    
    
    

提交回复
热议问题