最近の検索
最近の検索はありません

Alexandre Sabatier
参加日2021年5月13日
·
前回のアクティビティ2021年10月22日
フォロー中
0
フォロワー
0
合計アクティビティ
8
投票
1
受信登録
3
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Alexandre Sabatier
Alexandre Sabatierさんがコメントを作成しました:
Would it be possible to generate dynamic content items from a manifest.json (like settings)?
コメントを表示 · 投稿日時:2021年9月05日 · Alexandre Sabatier
0
フォロワー
0
投票
0
コメント
Alexandre Sabatierさんがコメントを作成しました:
Yes, everything works fine outside of Zendesk or with a non-secure parameter.
However, we followed one of your examples and simply replaced the "method" attribute with "type" in our code snippet.
...and it is now working! (also, thanks for the side note :)
コメントを表示 · 投稿日時:2021年3月17日 · Alexandre Sabatier
0
フォロワー
0
投票
0
コメント
Alexandre Sabatierさんがコメントを作成しました:
I can't really wrap my head around the "data" attribute and the fact it is setting a body as query parameters. Is this the only way to send a body? My target endpoint returns a parsing error (400) only with client.request(), which we need to send a secure setting. It works fine with GET since there is no body.
var settings = {
method: 'PUT',
url: `url`,
contentType: 'application/json;charset=utf-8',
headers: {
"Accept": "application/json",
"Authorization": "Basic {{setting.token}}"
},
data: JSON.stringify({
Description: `${desc}`,
Owner: `${owner}`
}),
cors: false,
dataType: "json",
secure: true,
httpCompleteResponse: true
}
コメントを表示 · 投稿日時:2021年3月17日 · Alexandre Sabatier
0
フォロワー
0
投票
0
コメント
Alexandre Sabatierさんがコメントを作成しました:
Hi @..., thanks for covering all the different options we have in Zendesk!
With a server that is not accepting cors, I am using the Method 3 and pass the following GET request header through client.request(): 'x-csrf-token': 'Fetch'. Unfortunately the header is not being sent at all.
Would you have any idea why this happens? I can see it when setting client.request to cors: true or using $.ajax, etc. but cannot use it since the server is not cors-compliant.
Thanks!
コメントを表示 · 投稿日時:2021年3月17日 · Alexandre Sabatier
0
フォロワー
0
投票
0
コメント