Changement type credential sur ask
Browse files- 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: '
|
| 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: '
|
| 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: '
|
| 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: '
|
| 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 => {
|