I'm new to wappler. I've gone through all the possible tutorials available online but could not find any solution for that. All tutorials are old and for previous versions of wappler.
I'm building an android application login form.
Access to XMLHttpRequest at 'https://my-site.com/dmxConnect/api/security/user-login.php' from origin 'http://localhost:49849' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
And you're sure config.php is uploaded to the server?
Note there's a "problem" here:
When you change from one project to another one, mobile port changes.
If you're previewing your mobile project on port 49849 and switch to the backend one and add it to config.php, then once you go back to the mobile one, the port changed again...
Just need to realize that everytime Wappler restarts the server for the mobile project (i.e by switching from one project to another or restarting Wappler) that the port will be different because Wappler assigns a random port to Mobile projects.
You can modify a file to set a static port and it will survive until you install a new version of Wappler.