プロジェクト

全般

プロフィール

Vote #72256

完了

JSONP support

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
47
issue_org_id:
11469
author_id:
54551
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Please enable "JSONP":http://en.wikipedia.org/wiki/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.


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Support for JSONP added in r10088. You can use the @callback@ or @jsonp@ parameter to specify the JSONP callback.

Exemple:

<pre>
GET /issues.json?callback=foo
=> foo({"issues":...})
</pre>
--------------------------------------------------------------------------------
If you come into this page by searching, since #12992 JSONP support is disabled by default.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,10761,Rest API JSON response can not be parsed by jQuery
relates,Closed,13718,Accept dots in JSONP callback
relates,Closed,12992,Make JSONP support optional and disabled by default

Admin Redmine さんが3年以上前に更新

  • カテゴリREST API_32 にセット
  • 対象バージョン2.1.0_47 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0