Feature #11469
closed
Added by Markus M over 12 years ago.
Updated about 10 years ago.
Description
Please enable JSONP
This is necessary when a JS-Client wants to call the Redmine API of another Subdomain, Server, Protocol, Port... (Same Orign Policy)
It's not that hard to accomplish. You just need to set a request filter that wrappes the response in a given JS function. See #10761 for an example of the expected output.
- Assignee set to Jean-Philippe Lang
- Target version set to 2.1.0
- Subject changed from Enable JSONP to JSONP support
- Status changed from New to Closed
- Resolution set to Fixed
Support for JSONP added in r10088. You can use the callback
or jsonp
parameter to specify the JSONP callback.
Exemple:
GET /issues.json?callback=foo
=> foo({"issues":...})
If you come into this page by searching, since #12992 JSONP support is disabled by default.
- Related to Feature #12992: Make JSONP support optional and disabled by default added
Also available in: Atom
PDF