From b9395620df2f5eaa82527d33f083eb9863aad285 Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Wed, 6 Dec 2023 10:46:36 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'cryptide=5Fproject?= =?UTF-8?q?/src/SocketConfig.ts'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cryptide_project/src/SocketConfig.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cryptide_project/src/SocketConfig.ts b/cryptide_project/src/SocketConfig.ts index 2af1b9c..b0c101d 100644 --- a/cryptide_project/src/SocketConfig.ts +++ b/cryptide_project/src/SocketConfig.ts @@ -1,13 +1,7 @@ import { io } from "socket.io-client"; import { ADRESSE_WEBSERVER } from "./AdressSetup"; -const socket = io(ADRESSE_WEBSERVER, { - withCredentials: true, - extraHeaders: { - 'Access-Control-Allow-Origin': 'https://codefirst.iut.uca.fr/containers/Crypteam-website:80', // Replace with your client's domain and port - 'Access-Control-Allow-Credentials': 'true' - } -}); +const socket = io(ADRESSE_WEBSERVER); console.log(ADRESSE_WEBSERVER) console.log(socket.id)