cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Share webscript help...!!!

nirvanvjain
Champ on-the-rise
Champ on-the-rise
Dear All,

I found this variable and its value in Alfresco Share.

Alfresco.constants.PROXY_URI ::  share/proxy/alfresco

To call a data webscript in alfresco share, we are using alfresco/service but if we use this then also it would call webscript successfully.

What is the significant of it ? What is the difference in between this two ?

Please guide me.

Thanks!
- Nirvan
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
The proxy is used to invoke URLs on other servers from within client-side code as a work around for the cross-site scripting limitation. Most often, the server you want to talk to is the repository tier.

So if you are in a controller in a Share-tier web script, there is no need to use the proxy. Server's aren't subject to the cross-site scripting limitation. But if you are making an AJAX call, for example, you should go through the proxy.

Hope that clears it up.

Jeff