Sharepoint - Can we access the sharepoint 2013 list from another web application using CSOM
If you use JavaScript code loaded from Web app A, cross-domain Policy will prevent you from accessing data hosted in Web app B (different domain). One option would be to host/load your script file from Web app B (i.e. linking from page in Web app A to a script file residing in Web app B).