최근 검색
최근 검색 없음

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
댓글