Skip to content

Commit

Permalink
Add fix for flaw 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Melimet committed Feb 1, 2023
1 parent be44938 commit 3a40755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { userRouter } from './routes/user'
import { loginRouter } from './routes/login'
import cors from 'cors'
const app = express()
// FIX: app.use(cors({origin: “http://localhost:3000”}))
app.use(cors())
app.use(express.json())
app.use('/api/users', userRouter)
Expand Down

0 comments on commit 3a40755

Please sign in to comment.