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

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
コメント