-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/update nces fetching #398
Conversation
… a README file), as the JSON file is still used in the 2022 FRF, so must stay at this location
…ing Express app, and caching the data on the Express app's locals object
…ection comment to be consistent with other data stored on Express app's locals object
const logMessage = `Server listening on port ${port}`; | ||
log({ level: "info", message: logMessage }); | ||
app.use(express.json({ limit: JSON_PAYLOAD_LIMIT || "5mb" })); | ||
app.use(cookieParser()); |
Check failure
Code scanning / CodeQL
Missing CSRF middleware High
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
This cookie middleware is serving a request handler without CSRF protection.
* Use regex to add trailing slash on static requests | ||
* (required when using sub path). | ||
*/ | ||
const pathRegex = new RegExp(`^\\${SERVER_BASE_PATH || ""}$`); |
Check failure
Code scanning / CodeQL
Regular expression injection High
environment variable
app.use(basePath, express.static(resolve(__dirname, "public"))); | ||
|
||
/** Ensure that requested client route exists (otherwise send 404). */ | ||
app.use(checkClientRouteExists); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a file system access
app.use(checkClientRouteExists); | ||
|
||
/** Ensure user is authenticated on all client-side routes except / and /welcome */ | ||
app.use(protectClientRoutes); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
This route handler performs
authorization
app.get("*", (req, res) => { | ||
res.sendFile(resolve(__dirname, "public/index.html")); | ||
}); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
Related Issues:
Main Changes:
Steps To Test: