Side navigation
#4462 closed enhancement (fixed)
Opened March 31, 2009 06:08PM UTC
Closed January 09, 2011 06:34AM UTC
Last modified January 28, 2011 01:09AM UTC
allow for signing json/jsonp urls via an additional callback paramater to $.ajax
Reported by: | woody@xoopit.com | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | ajax | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It would be great to have for all $.ajax variants, but in particular for jsonp, it is not possible to use signed url schemes with the current url construction mechanism. In particular, the actual url is constructed deep inside the ajax function, and thus cannot be properly signed by the caller.
I propose adding a callback function the ajax method (and all variants) that accepts the url as it is about to be used, and allows the developer to return a new url, namely in this case, one that is signed.
I could envision concerns, and would accept returning only a mapping of key/values that would be added to the end of the url, so as to not modify the existing url.
Either of these mechanisms would allow for me to sign a request with a shared secret and make a json/jsonp call with a proper signature of the url.
Attachments (0)
Change History (4)
Changed November 06, 2010 11:49PM UTC by comment:1
blockedby: | → 5500 |
---|---|
status: | new → open |
Changed December 27, 2010 10:36PM UTC by comment:2
keywords: | → ajaxrewrite |
---|
Changed January 09, 2011 06:34AM UTC by comment:3
resolution: | → fixed |
---|---|
status: | open → closed |
Changed January 28, 2011 01:09AM UTC by comment:4
keywords: | ajaxrewrite |
---|---|
milestone: | 1.4 → 1.5 |
priority: | major → high |
version: | 1.3.2 → 1.4.4 |
When/if
is implemented for JSONP requests it would be possible to sign/modify the url there.