As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<script type="text/javascript" src="/org/alfresco/sample/test/myspaces2.js"></script>
ticket=$(session.ticket)
<script type="text/javscript" src="/alfresco/path/to/javscript/myspaces.js?ticket=${session.ticket}"></script>
Although the problem is occurring because you're mixing the two authentication types.
/alfresco/service/api/path/content/workspace/SpacesStore/Company%20Home/myspaces.js user=reader&password=reader
…but what I d like is to only have to go through one of them, the login of Alfresco.Cant I do something that looks like /alfresco/service/api/path/content/workspace/SpacesStore/Company%20Home/myspaces.js user=reader&password=reader
/alfresco/wcservice/api/path/content/workspace/SpacesStore/Company%20Home/myspaces.js