Exact error is this
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at [url=http://...//index.php/api//login]http://.../**/index.php/a...[/url]. This can be fixed by moving the resource to the same domain or enabling CORS.