My application works fine on browser.
When I compile it with intelXDL / phonegap : AJAX calls works fine, but not socket.io connections. (sockets use port 1445)
I have
"status: cancelled"
so it looks like permissions problem
I tried to add ALL possible combinations for whitelist (I use CLI 4.1.2)
http://www.example.com/*
http://www.example.com:1445/*
http://*:1445/*
http://*
*
The first rule makes AJAX call possible. The other rules do not allow to connect to socket.io on port 1445
Any idea ?
@yarek,
This is a canned answer because Cordova just move the documentation, without warning or announcement.
The fix to many common white-list problems
The alternative is this quick fix – but know that this quick fix removes all needs for
white-list
. This creates a security issue which you may not want to by pass.QUICK FIX Add this to your
config.xml
for PHONEGAP BUILD ONLY<preference name="phonegap-version" value="3.7.0" />
The long answer is as such:
From Top Mistakes by Developers new to Cordova/Phonegap you have hit:
For #6 & #7
For #10
Related Links