Browse Source

renable worker protection

pull/4023/head
Martin McKeaveney 5 years ago
parent
commit
ba2d72b205
  1. 6
      packages/worker/src/api/index.js

6
packages/worker/src/api/index.js

@ -30,9 +30,9 @@ router
.use(buildAuthMiddleware(NO_AUTH_ENDPOINTS))
// for now no public access is allowed to worker (bar health check)
.use((ctx, next) => {
// if (!ctx.isAuthenticated) {
// ctx.throw(403, "Unauthorized - no public worker access")
// }
if (!ctx.isAuthenticated) {
ctx.throw(403, "Unauthorized - no public worker access")
}
return next()
})

Loading…
Cancel
Save