Skip to content

Commit

Permalink
fix(Deployment-Server): fix Device Images behind proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozzim committed May 13, 2022
1 parent 800acf4 commit 3401b85
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/deployment-server/src/util/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ export function createApp (db: PrismaClient): Application {
...helmet.contentSecurityPolicy.getDefaultDirectives(),
'script-src': ["'self'", "'unsafe-inline'"],
'img-src': ["'self'", 'data:', 'storage.googleapis.com', 'raw.githubusercontent.com'],
'connect-src': ["'self'", 'data:', 'storage.googleapis.com']
'connect-src': ["'self'", 'data:', 'storage.googleapis.com'],
}
}
}))
},
crossOriginEmbedderPolicy: true
}))

const apiRouter = Router()

Expand Down

0 comments on commit 3401b85

Please sign in to comment.