WebhttpRequest Not working on mobile browsers

Hi everyone,

I have a simple login form where I call a php file for authentication using webhttprequest.
On desktop browsers it work just fine, but when I try to login using for example my iphone ou android device then it does not work. No error is returned , login is not working. I supect this is a permission header missing for mobile browsers but not sure what to do, I add this lines of code in the PHP file :

        header("Access-Control-Allow-Origin: *");
        header('Access-Control-Allow-Credentials: true');
        header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
        header("Access-Control-Allow-Headers: *");

It work for desktop browsers but still not working in mobile browsers.

I'm stuck any idears.



It is unclear what might be causing this.
I guess you are here working via a different network connection?
Is your PHP endpoint accessible via this network you use on the mobile device?

Do you see an error?

Hi Bruno,

I managed to make it work.

The PHP file that I'm calling is on a cloud server, the Webcore app is in the same server.
Howerver the webcore app is configured on IIS and the PHP on Apache in a diferent port.
what I did is to move everithing to the apache server and it working fine now in both desktop and mobile.


Thanks for informing!