Skip to content

Commit

Permalink
feat: Updated backend/src/app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 21, 2023
1 parent 0412573 commit c3d28d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const cors = require('cors');
const routes = require('./routes');

// TODO: Add CSRF protection, see GH Issue #170. Ignore for now.
// eslint-disable-next-line max-len
app.use(csrf());

Check failure on line 7 in backend/src/app.js

View workflow job for this annotation

GitHub Actions / lint-backend

'app' was used before it was defined

Check failure on line 7 in backend/src/app.js

View workflow job for this annotation

GitHub Actions / lint-backend

'csrf' is not defined
// nosemgrep: javascript.express.security.audit.express-check-csurf-middleware-usage.express-check-csurf-middleware-usage

Check failure on line 8 in backend/src/app.js

View workflow job for this annotation

GitHub Actions / lint-backend

This line has a length of 121. Maximum allowed is 100
const app = express();

Expand Down

0 comments on commit c3d28d8

Please sign in to comment.