I am facing a strange problem. I am trying to integrate a REST api in phonegap application.
When I request the url say http://myserver/index.php?m=login
via a rest client in my browser it works fine.
But when I invoke it via jQuery ajax it returns the following error:
Warning: include(C:/Domains/my-portal.org/httpdocs/mmode/template/mobile/index.php) [function.include]: failed to open stream: No such file or directory in C:\Domains\my-portal.org\httpdocs\mmode\index.php on line 13
Warning: include(C:/Domains/my-portal.org/httpdocs/mmode/template/mobile/index.php) [function.include]: failed to open stream: No such file or directory in C:\Domains\my-portal.org\httpdocs\mmode\index.php on line 13
Warning: include() [function.include]: Failed opening 'C:/Domains/myportal.org/httpdocs/mmode/template/mobile/index.php' for inclusion (include_path='.;./includes;./pear;C:\PHP\includes') in C:\Domains\my-portal.org\httpdocs\mmode\index.php on line 13
Now the problem is not cross-domain scripting because the response header returns "Access-Control-Allow-Origin: *
". And I have also white-listed the domain in cordova settings.
Can anyone please guide me what could be the problem here?