Commit f83d0670 authored by isstuev's avatar isstuev

fix adbutler csp

parent d3155e45
......@@ -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': [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment