From 0da41ebec16d6835bb88850a268ea8afe3ab2789 Mon Sep 17 00:00:00 2001 From: PedroMiolaSilva Date: Fri, 28 Feb 2025 13:20:42 -0300 Subject: [PATCH] fix: temporarily removing credentials --- .../vue/vue3-ai-chatbot-widget/src/core/azion-copilot.js | 4 ++-- templates/vue/vue3-ai-chatbot-widget/src/services/auth.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/vue/vue3-ai-chatbot-widget/src/core/azion-copilot.js b/templates/vue/vue3-ai-chatbot-widget/src/core/azion-copilot.js index 934ebdf0..4dc9dc32 100644 --- a/templates/vue/vue3-ai-chatbot-widget/src/core/azion-copilot.js +++ b/templates/vue/vue3-ai-chatbot-widget/src/core/azion-copilot.js @@ -174,7 +174,7 @@ export class AzionCopilot { const response = await fetch(`${this.serverConfig.url}${this.serverConfig.conversation}`, { method: 'POST', - credentials: 'include', + // credentials: 'include', headers, body: JSON.stringify({ messages: messageQueue, @@ -282,7 +282,7 @@ export class AzionCopilot { const response = await fetch(`${this.serverConfig.url}${this.serverConfig.feedback}`, { method: 'POST', - credentials: 'include', + // credentials: 'include', headers, body: JSON.stringify(feedbackData) }) diff --git a/templates/vue/vue3-ai-chatbot-widget/src/services/auth.js b/templates/vue/vue3-ai-chatbot-widget/src/services/auth.js index 4a0e234d..de149dc1 100644 --- a/templates/vue/vue3-ai-chatbot-widget/src/services/auth.js +++ b/templates/vue/vue3-ai-chatbot-widget/src/services/auth.js @@ -66,7 +66,7 @@ export class AuthService { const response = await fetch(`${this.copilotBackend}/auth`, { method: 'POST', - credentials: 'include', + // credentials: 'include', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${password}`