Skip to content

Commit

Permalink
api_url_change-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sg108 committed Feb 9, 2024
1 parent aa04fb6 commit e22a9ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ const cors = require("cors")
app.set('trust proxy', 1);
app.use(cors({
origin:'https://home-kart.vercel.app',
credentials:true
credentials:true,

}))
app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*');
next();
});
app.use(express.json())


Expand Down

0 comments on commit e22a9ce

Please sign in to comment.