Skip to content

Commit 5b28a25

Browse files
committed
Block external direct access to collection API
1 parent 7e88b78 commit 5b28a25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)