From 45ed806d1c939cab2efbdd12d4235c9fda9ba17a Mon Sep 17 00:00:00 2001 From: isstuev Date: Tue, 20 Jun 2023 11:35:05 -0300 Subject: [PATCH] fix adbutler csp --- lib/csp/policies/ad.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/csp/policies/ad.ts b/lib/csp/policies/ad.ts index 90158f0bf2..54633b8034 100644 --- a/lib/csp/policies/ad.ts +++ b/lib/csp/policies/ad.ts @@ -3,7 +3,7 @@ import sha256 from 'crypto-js/sha256'; import type CspDev from 'csp-dev'; import isSelfHosted from 'lib/isSelfHosted'; -import { connectAdbutler, placeAd } from 'ui/shared/ad/adbutlerScript'; +import { connectAdbutler, placeAd, placeAdSPA } from 'ui/shared/ad/adbutlerScript'; export function ad(): CspDev.DirectiveDescriptor { if (!isSelfHosted()) { @@ -25,6 +25,7 @@ export function ad(): CspDev.DirectiveDescriptor { 'servedbyadbutler.com', `'sha256-${ Base64.stringify(sha256(connectAdbutler)) }'`, `'sha256-${ Base64.stringify(sha256(placeAd)) }'`, + `'sha256-${ Base64.stringify(sha256(placeAdSPA)) }'`, '*.slise.xyz', ], 'img-src': [