Update branch - #149
Conversation
v1.0.5 hotfix 2
Resolve issue with handbook route returning 404
v1.0.6 Release
compose.yml hotfix
v1.0.7 Release
Update version and linting
v1.0.8 Release
v1.0.8 Hotfix
Hotfix: Fix issue with malformed HTTP responses
v1.0.9 Release
v1.10.10 Release
v1.1.0 Release
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1. - [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md) - [Commits](apostrophecms/sanitize-html@2.11.0...2.12.1) --- updated-dependencies: - dependency-name: sanitize-html dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…remove unused db field
…tlint feat(commitlint): add husky commit-msg with commitlint configuration
Bumps [ip](https://github.com/indutny/node-ip) from 1.1.8 to 1.1.9. - [Commits](indutny/node-ip@v1.1.8...v1.1.9) --- updated-dependencies: - dependency-name: ip dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…tize-html-2.12.1 Bump sanitize-html from 2.11.0 to 2.12.1
….1.9 Bump ip from 1.1.8 to 1.1.9
Bugfix/change api key strategy
…, add missing examples to docs
fix/failing docker dependencies
Prevent HTTP 500 for missing files --------- Co-authored-by: Yet Another Stupid Coder <117515380+WhyNeet@users.noreply.github.com>
feat(api): add daily sitemap generation, fix Googlebot unable to access api
Bumps [katex](https://github.com/KaTeX/KaTeX) from 0.16.9 to 0.16.10. - [Release notes](https://github.com/KaTeX/KaTeX/releases) - [Changelog](https://github.com/KaTeX/KaTeX/blob/main/CHANGELOG.md) - [Commits](KaTeX/KaTeX@v0.16.9...v0.16.10) --- updated-dependencies: - dependency-name: katex dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat(front + api): add public node_env option and disable features in mode * feat(docs): update docs to reflect new public node_env option
| app.use(helmet({ | ||
| contentSecurityPolicy: false | ||
| })); |
Check failure
Code scanning / CodeQL
Insecure configuration of Helmet security middleware High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI almost 2 years ago
To fix the problem, we need to ensure that the contentSecurityPolicy is not disabled. Instead of setting it to false, we should provide a secure default configuration. If specific directives are required, they should be explicitly defined. Additionally, we should ensure that frameguard is not disabled to protect against clickjacking attacks.
- Update the Helmet configuration to enable
contentSecurityPolicywith a secure default or custom directives. - Ensure that
frameguardis enabled with appropriate settings.
| @@ -63,3 +63,12 @@ | ||
| app.use(helmet({ | ||
| contentSecurityPolicy: false | ||
| contentSecurityPolicy: { | ||
| directives: { | ||
| "default-src": ["'self'"], | ||
| "script-src": ["'self'", "'unsafe-inline'"], | ||
| "style-src": ["'self'", "'unsafe-inline'"], | ||
| "img-src": ["'self'", "data:"], | ||
| "connect-src": ["'self'"] | ||
| } | ||
| }, | ||
| frameguard: { action: 'deny' } | ||
| })); |
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
No description provided.