ojasaklechayt / Oju-s-Blogs

A full MERN Stack Blogging website to write out yourself
https://oju-blogs.vercel.app
10 stars 14 forks source link

resolved the cores error #32

Open aasimtaif opened 10 months ago

aasimtaif commented 10 months ago

fixes #28 The core error was happening due to the default request limit I changed it to 1MB now as long as the request size is less than 1mb it will work fine You can increase the size if you want

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
oju-blogs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2023 0:48am
ojasaklechayt commented 10 months ago

Right not I am facing cors issue even while logging in.

aasimtaif commented 10 months ago

Right not I am facing cors issue even while logging in.

app.use(cors({
origin: 'https://oju-blogs.vercel.app',
// Update with your frontend URL
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
credentials: true,
// Include if you need to handle cookies
}));

i think this is due to i think you are trying on your local server

ojasaklechayt commented 10 months ago

Right not I am facing cors issue even while logging in.

app.use(cors({
origin: 'https://oju-blogs.vercel.app',
// Update with your frontend URL
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
credentials: true,
// Include if you need to handle cookies
}));

i think this is due to i think you are trying on your local server

Nope with the pr preview only

aasimtaif commented 10 months ago

Desktop-1698153576579.webm post request on http://localhost:5000/api/user/${type}