cancel
Showing results for 
Search instead for 
Did you mean: 

aikau restful api

anesis
Champ in-the-making
Champ in-the-making
Hello everyone,
I am new to Alfresco and just started to learn about the Alfresco SDK 2.0 beta. What I want to do is to build a restful webservice with aikau and it's widget technology.
On the alfresco repository AMP I created already a service which can take Json files and handles them. I have a GET method which works fine with the browser to get JSON files and a POST method handler which also works fine with the chrome extension postman.
The problem I have is with Aikau/dojo which always tell me that it can not get any JSON files from the repository because of this Problem.
" No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. "

How can I solve this problem? I mean it has something to do with authentication but I am not sure where I have to tweak it.

thanks in advance
1 REPLY 1

christianjanker
Champ on-the-rise
Champ on-the-rise
Your browsers http://en.wikipedia.org/wiki/Same-origin_policy hunts you down..

Share itself uses a proxy-service on the share-side to call a backend webscript.

eg.:
Repo Service: http://localhost:8080/alfresco/service/api/workflow-definitions

Same Servicecall from Share: http://localhost:8082/share/proxy/alfresco/api/workflow-definitions