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)