maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Binary Android build 'post' method always returning a success in binary build

And tell us how to reproduce the problem...

Jeff Givens
Posts: 0
Joined: Sat Aug 10, 2013 8:20 pm

Binary Android build 'post' method always returning a success in binary build

I'm going to need to buy you a beer for all this help sometime, Max.

Jeff Givens
Posts: 0
Joined: Sat Aug 10, 2013 8:20 pm

Binary Android build 'post' method always returning a success in binary build

Email sent to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a for login info

Jeff Givens
Posts: 0
Joined: Sat Aug 10, 2013 8:20 pm

Binary Android build 'post' method always returning a success in binary build

Fixed the issue. I had to enable CORS for Wordpress in the PHP Script header using this code:

require('../wp-blog-header.php');
header("HTTP/1.1 200 OK");
header("Access-Control-Allow-Origin: *");

....before, I did not have this line:
header("Access-Control-Allow-Origin: *");

Now it works in the binary AND in the test app. Thanks for your help.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Binary Android build 'post' method always returning a success in binary build

Hi, glad it's working now! Thank you for update!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Binary Android build 'post' method always returning a success in binary build

That's interesting.. when you run a hybrid app, CORS doesn't play a role. It only matters when running as mobile web.

Return to “Issues”