Daly26 commited on
Commit
02f2d31
·
1 Parent(s): 3b238e0

Changement type credential sur ask

Browse files
Files changed (1) hide show
  1. templates/index.html +4 -4
templates/index.html CHANGED
@@ -388,7 +388,7 @@
388
  method: 'POST',
389
  headers: { 'Content-Type': 'application/json' },
390
  body: JSON.stringify({ role_selection: selectedRole }),
391
- credentials: 'same-origin'
392
  })
393
  .then(response => {
394
  console.log('Réponse status:', response.status);
@@ -427,7 +427,7 @@
427
  fetch('/api/reset-role', {
428
  method: 'POST',
429
  headers: { 'Content-Type': 'application/json' },
430
- credentials: 'same-origin'
431
  })
432
  .then(response => response.json())
433
  .then(data => {
@@ -517,7 +517,7 @@
517
  method: 'POST',
518
  headers: { 'Content-Type': 'application/json' },
519
  body: JSON.stringify({ query: query }),
520
- credentials: 'same-origin'
521
  })
522
  .then(response => response.json())
523
  .then(data => {
@@ -710,7 +710,7 @@
710
  method: 'POST',
711
  headers: { 'Content-Type': 'application/json' },
712
  body: JSON.stringify({ query: transcript, mode: "conversation" }),
713
- credentials: 'same-origin'
714
  })
715
  .then(response => response.json())
716
  .then(data => {
 
388
  method: 'POST',
389
  headers: { 'Content-Type': 'application/json' },
390
  body: JSON.stringify({ role_selection: selectedRole }),
391
+ credentials: 'include'
392
  })
393
  .then(response => {
394
  console.log('Réponse status:', response.status);
 
427
  fetch('/api/reset-role', {
428
  method: 'POST',
429
  headers: { 'Content-Type': 'application/json' },
430
+ credentials: 'include'
431
  })
432
  .then(response => response.json())
433
  .then(data => {
 
517
  method: 'POST',
518
  headers: { 'Content-Type': 'application/json' },
519
  body: JSON.stringify({ query: query }),
520
+ credentials: 'include'
521
  })
522
  .then(response => response.json())
523
  .then(data => {
 
710
  method: 'POST',
711
  headers: { 'Content-Type': 'application/json' },
712
  body: JSON.stringify({ query: transcript, mode: "conversation" }),
713
+ credentials: 'include'
714
  })
715
  .then(response => response.json())
716
  .then(data => {