[
https://issues.apache.org/jira/browse/SHINDIG-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581664#action_12581664
]
Kevin Brown commented on SHINDIG-148:
-------------------------------------
It's probably worth adding a utility method for this in gadgets.io (not a part
of the spec) so that you can take advantage of the normalized XHR / callback
stuff. Something like: gadgets.io.makeDirectRequest
We could overload the normal makeRequest for this behavior, but that might get
a little clunky. Perhaps if we only used this for relative urls?
> makeRequest should avoid the proxy when making direct connection to urls on
> the proxy
> -------------------------------------------------------------------------------------
>
> Key: SHINDIG-148
> URL: https://issues.apache.org/jira/browse/SHINDIG-148
> Project: Shindig
> Issue Type: Improvement
> Components: OpenSocial - Javascript
> Reporter: Paul Lindner
>
> The current implementation of the socialdata servlet sends requests to the
> shindig proxy, which then contacts itself with a signed request. -- very
> inefficient.
> It would be nice if the gadgets.io.makeRequest() could send XHR requests
> directly to the backend server when using relative paths or when the
> hostnames matched. This would reduce a whole hop on these types of requests.
> Alternatively one could configure the batchrequest.js/jsoncontainer.js to
> communicate directly with the backend server.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.