Skip to content

Commit 7355d68

Browse files
committed
2 parents 3619e42 + c0eff7f commit 7355d68

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

backend/src/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const app = express();
1212
const server = http.createServer(app);
1313
const io = socketIO(server, {
1414
cors: {
15-
origin: ['http://localhost:5173', 'http://localhost:5174'],
15+
origin: '*',
1616
methods: ['GET', 'POST'],
1717
credentials: true
1818
}
@@ -31,7 +31,7 @@ connectDB();
3131

3232
// Middleware
3333
app.use(cors({
34-
origin: ['http://localhost:5173', 'http://localhost:5174'], // Allow both ports
34+
origin: '*', // Allow all origins
3535
credentials: true
3636
}));
3737

frontend/src/pages/Home.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,15 @@ export default function Home() {
9898
<Link
9999
// to="/sign"
100100
to="/sign"
101+
target="_self"
101102
className="inline-flex h-12 animate-shimmer items-center cursor-pointer justify-center rounded-md border border-white bg-[linear-gradient(110deg,#000103,45%,#1e2631,55%,#000103)] bg-[length:200%_100%] px-6 font-medium text-gray-200 transition-colors focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-slate-50"
102103
>
103104
Login
104105
</Link>
105106
<Link
106107
// to="/sign"
107108
to="/leaderboard"
108-
target="_blank"
109+
target="_self"
109110
className="shadow-[0_0_0_3px_#000000_inset] flex justify-center items-center h-12 bg-white px-6 py-2 bg-transparent border border-black dark:border-white dark:text-black text-black rounded-lg font-bold transform "
110111

111112
// className="inline-flex h-12 animate-shimmer items-center cursor-pointer justify-center rounded-md border border-white bg-[linear-gradient(110deg,#000103,45%,#1e2631,55%,#000103)] bg-[length:200%_100%] px-6 font-medium text-gray-200 transition-colors focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-slate-50"
@@ -206,6 +207,7 @@ export default function Home() {
206207
<Link
207208
// to="/sign"
208209
to="/sign"
210+
target="_self"
209211
className="shadow-[0_0_0_3px_#000000_inset] bg-white px-6 py-2 bg-transparent border border-black dark:border-white dark:text-black text-black rounded-lg font-bold transform hover:-translate-y-1 transition duration-400"
210212
>
211213
Login

0 commit comments

Comments
 (0)