최근 검색
최근 검색 없음

Saad Mushtaq
가입한 날짜: 2024년 1월 16일
·
마지막 활동: 2024년 1월 16일
팔로잉
0
팔로워
0
총 활동 수
2
투표 수
0
가입 플랜
1
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Saad Mushtaq
Saad Mushtaq님이 에 댓글을 입력함
댓글Single sign-on
Hello,
Javier DM could you please create a support ticket for us as well? We have tried switching to POST and so far we have been getting CORS errors. We tried the form approach as below but that did not work either.
var formData = new URLSearchParams();
formData.append('jwt', jwt);
formData.append('return_to', returnTo || 'https://xyz.com/');
// Make a POST request
fetch("xxx", {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: formData.toString() // Convert the form data to a string })
.then(response => {
if (response.ok) {
// Redirect
window.location = response.url;
} else {
console.error('POST request failed:', response.status, response.statusText);
}
})
sso_page = ("
'
+''
)
return sso_page
The problem happens only with the switch to a POST request. GET request is working fine for us. Caroline Kello, would you share some examples of how that post request is supposed to look like? The GitHub link you have shared has old examples
댓글 보기 · 2024년 1월 16일에 편집됨 · Saad Mushtaq
0
팔로워
1
투표
0
댓글