Skip to content

Commit

Permalink
fix: safari is requiring a specific csp rule for crisp
Browse files Browse the repository at this point in the history
  • Loading branch information
sneko committed Dec 9, 2024
1 parent c3f3aea commit d55eeb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ function formatSecurityHeaders(nonce?: string) {
' '
)};object-src 'none';script-src ${`'nonce-${nonce}'`} ${scriptSrcValues.join(' ')};script-src-attr 'none';connect-src ${connectSrcValues.join(
' '
)};style-src-elem 'unsafe-inline' ${styleSrcValues.join(' ')};style-src-attr 'self' ${libraryCompatibilityWorkaround ? "'unsafe-inline'" : ''}${
upgradeInsecureRequests ? ';upgrade-insecure-requests' : ''
}`,
)};style-src ${styleSrcValues.join(' ')};style-src-elem 'unsafe-inline' ${styleSrcValues.join(' ')};style-src-attr 'self' ${
libraryCompatibilityWorkaround ? "'unsafe-inline'" : ''
}${upgradeInsecureRequests ? ';upgrade-insecure-requests' : ''}`,
'Origin-Agent-Cluster': '?1',
'Referrer-Policy': 'no-referrer',
'Strict-Transport-Security': 'max-age=15552000; includeSubDomains',
Expand Down

0 comments on commit d55eeb3

Please sign in to comment.