Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions assets/js/crisp.js

This file was deleted.

31 changes: 6 additions & 25 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,12 @@ if (FEATURE_USE_SECURITY_RESPONSE_HEADERS) {
const cspMiddleware = (req: Request, res: Response, next: NextFunction) => {
const cspConfig = {
directives: {
defaultSrc: ["'self'", "client.crisp.chat"],
imgSrc: [
"'self'",
"data:",
"stats.data.gouv.fr",
"client.crisp.chat",
"image.crisp.chat",
"storage.crisp.chat",
"wss://client.relay.crisp.chat",
],
connectSrc: [
"'self'",
"stats.data.gouv.fr",
"client.crisp.chat",
"wss://client.relay.crisp.chat",
"storage.crisp.chat",
],
frameSrc: ["'self'", "proconnect.crisp.help"],
scriptSrc: [
"'self'",
"stats.data.gouv.fr",
"client.crisp.chat",
"blob:",
],
styleSrc: ["'self'", "client.crisp.chat", "'unsafe-inline'"],
defaultSrc: ["'self'"],
imgSrc: ["'self'", "data:", "stats.data.gouv.fr"],
connectSrc: ["'self'", "stats.data.gouv.fr"],
frameSrc: ["'self'"],
scriptSrc: ["'self'", "stats.data.gouv.fr", "blob:"],
styleSrc: ["'self'", "'unsafe-inline'"],
fontSrc: ["'self'", "data:"],
// As for https://github.com/w3c/webappsec-csp/issues/8, the feature is debated
// and seems not useful for open id provider redirection.
Expand Down
2 changes: 0 additions & 2 deletions src/views/partials/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,5 @@
<!-- Matomo Tag Manager -->
<script type="module" src="<%= js('matomo.js') %>"></script>
<!-- End Matomo Tag Manager -->
<!-- Crisp -->
<script type="module" src="<%= js('crisp.js') %>"></script>
<% } %>
</head>
Loading