Skip to content

Commit

Permalink
adding the app use cors
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefkarim committed Sep 11, 2023
1 parent c365d29 commit a89b53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const cors = require('cors')

//allowing access from anaywhere
app.options('*', cors())

app.use(cors())
//connecting to database
mongoose.set("strictQuery", false);

Expand Down

0 comments on commit a89b53a

Please sign in to comment.