Skip to content

Commit

Permalink
Update CORS configuration in socket.js with explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeljelly2147 committed Feb 7, 2025
1 parent 3f36fd4 commit 14316bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/socket/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const app = express();

const server = http.createServer(app);
const io = new Server(server, {
cors: {
cors: { // Cross-Origin Resource Sharing (CORS) is a security concept that allows restricting the resources implemented in web browsers.
origin: ["http://localhost:3000"],
methods: ["GET", "POST"],
},
Expand Down

0 comments on commit 14316bb

Please sign in to comment.