From 9f953088282cf7f574c7b8e9a6b593904fbcafdd Mon Sep 17 00:00:00 2001 From: Parth <20parthgupta03@gmail.com> Date: Sun, 19 May 2024 16:23:46 +0530 Subject: [PATCH] error resolution --- backend/socket/socket.js | 2 +- frontend/src/pages/signup/SignUp.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/socket/socket.js b/backend/socket/socket.js index 5aef2da..78edcf7 100644 --- a/backend/socket/socket.js +++ b/backend/socket/socket.js @@ -8,7 +8,7 @@ const app = express(); const server = http.createServer(app); const io = new Server(server, { cors: { - origin: ["http://localhost:3000"], + origin: ["https://lets-text-chat-app-api.vercel.app/"], methods: ["GET", "POST"], }, }); diff --git a/frontend/src/pages/signup/SignUp.jsx b/frontend/src/pages/signup/SignUp.jsx index ee48703..18f07fe 100644 --- a/frontend/src/pages/signup/SignUp.jsx +++ b/frontend/src/pages/signup/SignUp.jsx @@ -1,5 +1,5 @@ import { Link } from "react-router-dom"; -import GenderCheckbox from "./GenderCheckbox"; +import GenderCheckbox from './GenderCheckbox'; import { useState } from "react"; import useSignup from "../../hooks/useSignup"; const SignUp = () => {