I have a Share webscript (JavaScript) where it calls a repository webscript using remote object.
var result = remote.connect("alfresco").get('api/people/userId?groups=true');
This works fine when Share and Alfresco are deployed on the same server/port, but gets 404 when Alfresco is deployed on another Tomcat. For example, I use localhost:8080/alfresco and localhost:8081/share during development. How to get remote object call work in that case? What about webscript authentication? Thanks.