Skip to content

Commit

Permalink
chore(SLB-478): prevent indexing (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfield authored Jan 30, 2025
1 parent 448f4ec commit f6fb7ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/npm/@amazeelabs/publisher/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ const runServer = async (): Promise<HttpTerminator> => {
// Authentication middleware based on the configuration.
const authMiddleware = getAuthenticationMiddleware(getConfig());

// Prevent indexing.
app.use((_, res, next) => {
res.setHeader('X-Robots-Tag', 'noindex, nofollow');
next();
});

// Allow cross-origin requests
// @TODO see if we need to lock this down
// Default config:
Expand Down

0 comments on commit f6fb7ca

Please sign in to comment.