Skip to content

Commit

Permalink
cors error
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunVerma307 committed Aug 10, 2024
1 parent ff3b4e1 commit 31ca98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const app = express();
dotenv.config({ path: "./config/config.env" });
app.use(
cors({
origin: 'http://localhost:5173' ,
origin: 'https://work-wave01.netlify.app' ,
method: ["GET", "POST", "DELETE", "PUT"],
credentials: true,
// allowedHeaders:['Content-Type','Authorization']
Expand Down

0 comments on commit 31ca98c

Please sign in to comment.