diff --git a/api/src/server.ts b/api/src/server.ts index 836bad84..6f2e5882 100644 --- a/api/src/server.ts +++ b/api/src/server.ts @@ -11,7 +11,6 @@ import { createContext } from './context' import { logger } from './logger' import cacheControl from './middleware/cache-control' import router from './routes' -import { isProduction } from './util/is-production' import { appRouter } from './index' @@ -19,7 +18,11 @@ export const app = new Koa() app.use( helmet({ - contentSecurityPolicy: isProduction(), + contentSecurityPolicy: { + directives: { + 'img-src': ["'self'", 'githubusercontent.com'], + }, + }, }) ) app.use(cors({ origin: '*' })) diff --git a/package.json b/package.json index c92c2ec7..c1419e29 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "codeanker-project", "author": "CODEANKER GmbH", - "version": "1.4.1", + "version": "1.4.2", "description": "", "workspaces": [ "api",