Skip to content

Commit

Permalink
enable cors for *
Browse files Browse the repository at this point in the history
  • Loading branch information
viviannnl committed Sep 22, 2023
1 parent 2c587f7 commit d0b10ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ app.use(express.json())
app.use(express.urlencoded({extended: false}))

app.use(
cors({
origin: ["http://localhost:3000", "https://CarAIbou-demo.onrender.com"],
})
cors()
)

app.use('/api/users', require('./routes/userRoutes'))
Expand Down

0 comments on commit d0b10ae

Please sign in to comment.