Skip to content

Commit 2841671

Browse files
authored
Prevent external hosts from accessing the collection API directly (#1208)
2 parents 7e88b78 + 7e83740 commit 2841671

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## Unreleased [patch]
6+
7+
> Development of this release was supported by the [French Ministry for Foreign Affairs](https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/diplomatie-numerique/) through its ministerial [State Startups incubator](https://beta.gouv.fr/startups/open-terms-archive.html) under the aegis of the Ambassador for Digital Affairs.
8+
9+
### Fixed
10+
11+
- Prevent external hosts from accessing the collection API directly
12+
513
## 10.0.0 - 2025-11-20
614

715
_Full changeset and discussions: [#1207](https://github.com/OpenTermsArchive/engine/pull/1207)._

src/collection-api/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ app.use(errorsMiddleware);
1919

2020
const port = config.get('@opentermsarchive/engine.collection-api.port');
2121

22-
app.listen(port);
22+
app.listen(port, '127.0.0.1');
2323

2424
if (process.env.NODE_ENV !== 'test') {
2525
logger.info(`Start Open Terms Archive API on http://localhost:${port}${BASE_PATH}`);

0 commit comments

Comments
 (0)