access denied to PHP from Blackberry 10 platform using phonegap - closed

前端 未结 3 1263
陌清茗
陌清茗 2021-01-24 23:32

I have a problem with my phonegap project working on blackberry simulator. The version is 10.

When I say phonegap, I haven\'t used any Cordova features yet but my simple

相关标签:
3条回答
  • 2021-01-25 00:02

    This could be a cross-site request issue - I'm suspecting that the PHP side doesn't accept requests from outside of its own domain.

    How about putting this header at the top of your PHP file?

    header('Access-Control-Allow-Origin: *'); 
    
    0 讨论(0)
  • 2021-01-25 00:09

    As anami said earlier you need to have cross domain origin enabled in your server php file. Also you need to have <access subdomains="true" uri="http://*URI name here*"/> in config.xml for blackberry.

    Having both of these in place should solve your issue.

    0 讨论(0)
  • 2021-01-25 00:11

    The solution is to edit the config.xml file of the project - add the tag <access subdomains="true" uri="http://*URI name here*"/>. Only then, Blackberry allows access permissions to a different domain.

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