---
title: "Osman Zakir (@DragonOsman) | Hashnode"
description: "Web Developer and Programmer (learning MERN stack development and C++). Read the latest articles by Osman Zakir on Hashnode."
url: "https://hashnode.com/@DragonOsman"
---

@DragonOsman

# Osman Zakir

@DragonOsman · Joined July 2023

Web Developer and Programmer (learning MERN stack development and C++)

[Website](https://osmanzakir.dynu.net/)

## Comments

[It's an awesome and very helpfull article.](https://hashnode.com/posts/how-to-deploy-a-fullstack-nodejs-and-express-app-on-vercel/647e17cfa786b7ea95559b69/comment/64a020698db091c401033444)

Comment · Article · Jul 1, 2023 · [How to Deploy a FullStack NodeJs and Express App on Vercel](https://hashnode.com/posts/how-to-deploy-a-fullstack-nodejs-and-express-app-on-vercel/647e17cfa786b7ea95559b69)

[Hi, and thanks for this awesome article. I have this MERN app I've deployed to Vercel (my GitHub username is DragonOsman. Please go to my GitHub page and go to the personal-library repo; the deployment link is on the right-hand panel). I setup CORS and a proxy (proxy key in client directory package.json that points to the server URL), and the paths and methods are all correct as far as I can see, but I still get a 405 error when I try to send a POST request to my login route. Source code repository is on my personal-library repository (DragonOsman/personal-library). Any help is appreciated. \[I have to describe like this because I can't post links yet.\] Thanks. Edit: I removed proxy and only kept CORS, which I'm doing like this: const CLIENT\_URL = "<client\_url>"; app.use(cors({ origin: \[\`${CLIENT\_URL}\`, \`${CLIENT\_URL}/\`\], methods: \["GET", "PUT", "POST", "DELETE"\], credentials: true })); but I still have a CORS error in my browser's console that says: Access to fetch at '<backend\_login\_url>' from origin '<client\_url>' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. I added res.setHeader("Access-Control-Allow-Origin", \[CLIENT\_URL,${CLIENT\_URL}/\]); on all my routes, right at the start of the function code block, and I also added app.options("\*", cors()); (tried it both before and after my app.use(cors({...})) call). But that error won't go away. What should I do?](https://hashnode.com/posts/how-to-deploy-a-fullstack-nodejs-and-express-app-on-vercel/647e17cfa786b7ea95559b69/comment/64a01fec8db091c401033431)

Comment · Article · Jul 1, 2023 · [How to Deploy a FullStack NodeJs and Express App on Vercel](https://hashnode.com/posts/how-to-deploy-a-fullstack-nodejs-and-express-app-on-vercel/647e17cfa786b7ea95559b69)
