Skip to content

Commit

Permalink
Merge branch 'develop' into feature/web-ui-for-lookup-records
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro-bulgaris-qcif committed Jun 28, 2024
2 parents 3835fdf + b3b953a commit bc69541
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 48 deletions.
6 changes: 6 additions & 0 deletions api/policies/disallowedHeadRequestHandler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function (req, res, next) {
if (req.method === 'HEAD') {
return res.badRequest('Bad Request: HEAD method is not allowed');;
}
return next();
};
3 changes: 3 additions & 0 deletions config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ module.exports.routes = {
action: 'openIdConnectLogin',
csrf: false
},
'HEAD /user/begin_oidc': {
policy: 'disallowedHeadRequestHandler'
},
'get /user/begin_oidc': {
controller: 'UserController',
action: 'beginOidc',
Expand Down
24 changes: 12 additions & 12 deletions core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 9 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"typescript-json-schema": "^0.64.0",
"typescript-require": "~0.3.0",
"url-pattern": "^1.0.3",
"webpack": "^5.92.0",
"webpack": "^5.92.1",
"zone.js": "^0.14.7"
},
"scripts": {
Expand Down Expand Up @@ -114,7 +114,7 @@
"chai": "^5.1.1",
"ejs-cli": "^2.2.3",
"istanbul": "^0.4.5",
"mocha": "^10.4.0",
"mocha": "^10.5.0",
"mocha-junit-reporter": "^2.2.1",
"supertest": "^7.0.0",
"uglify-es": "^3.3.10"
Expand Down

0 comments on commit bc69541

Please sign in to comment.