Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sord-dev authored Aug 7, 2023
1 parent 28abdf3 commit 841264f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const UserRouter = require('./routes/UserRouter');

app.use(express.json());
app.use(cookieParser());
app.use(cors({ credentials: true })) // add your client domain in here like { origin: 'localhost:5172' }
app.use(cors({ credentials: true })) // add your client domain in here like { origin: 'http://localhost:5172' }

app.use('/auth', AuthRouter)
app.use('/teams', validateToken, TeamRouter)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.
Expand All @@ -34,4 +34,4 @@ app.get('/', (req, res, next) => {
res.json({ message: 'ok. api is working' })
})

module.exports = app;
module.exports = app;

0 comments on commit 841264f

Please sign in to comment.