Mehak Dhingra
174 posts


The fix is simple:
1️⃣ Backend needed: Access-Control-Allow-Origin: http://localhost:3000
2️⃣ My frontend fetch just needed: { mode: 'cors' }
That moment when you realize CORS isn't broken - it's working exactly as designed to keep us safe!
#WebDev #TheStruggleIsReal
English

Multer package in node is quite beneficial for parsing the form data in the backend.Was not able to parse the form data then got to know about this package.👨💻
#Node #Javascript #NPM
English

I used to feel like callback makes things difficult!But now I feel like without them asynchronous code would not have been possible in javascript and now i feel their importance🧵
#javascript #webapi
English

This is all that you need to know if you want to know about how does javascript run?
#javascript #eventloop

English

Server-side programs can "listen" for requests because they talk to the OS, and the OS knows how to handle TCP.
The OS listens on a port, and your code (like app.listen(3000)) just asks the OS to wake it up when someone connects.
It’s all built on layers! 🔥
#backenddev #Node
English

Just clicked how computers store everything as 0s/1s! 🤯
🔷The SAME binary (like 01000001) can be:
The letter 'A' 📝
The number 65 🔢
A pixel color 🖼️
Sound 🔊
Context is EVERYTHING! How we read it changes its meaning.
Knowing this feels like a superpower!
#TechBasics #Binary
English

1️⃣ Got a public IP for my router (just called my ISP)
2️⃣ Set up port forwarding (in the router's gateway)
3️⃣ Bought a domain (@GoDaddy) and linked it to my IP
And it freaking worked!
#NoobToServer #TechMag
English