Búsquedas recientes


No hay búsquedas recientes

Saad Mushtaq's Avatar

Saad Mushtaq

Incorporación 16 ene 2024

·

Última actividad 16 ene 2024

Seguimientos

0

Seguidores

0

Actividad total

2

Votos

0

Suscripción

1

RESUMEN DE LA ACTIVIDAD

Última actividad de Saad Mushtaq

Saad Mushtaq hizo un comentario,

ComentarioSingle 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);
}
})
We have also tried the traditional approach but that does not work either. 
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

Ver comentario · Editado 16 ene 2024 · Saad Mushtaq

0

Seguidores

1

Voto

0

Comentarios