Commit f83d0670 authored by isstuev's avatar isstuev

fix adbutler csp

parent d3155e45
...@@ -3,7 +3,7 @@ import sha256 from 'crypto-js/sha256'; ...@@ -3,7 +3,7 @@ import sha256 from 'crypto-js/sha256';
import type CspDev from 'csp-dev'; import type CspDev from 'csp-dev';
import isSelfHosted from 'lib/isSelfHosted'; 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 { export function ad(): CspDev.DirectiveDescriptor {
if (!isSelfHosted()) { if (!isSelfHosted()) {
...@@ -25,6 +25,7 @@ export function ad(): CspDev.DirectiveDescriptor { ...@@ -25,6 +25,7 @@ export function ad(): CspDev.DirectiveDescriptor {
'servedbyadbutler.com', 'servedbyadbutler.com',
`'sha256-${ Base64.stringify(sha256(connectAdbutler)) }'`, `'sha256-${ Base64.stringify(sha256(connectAdbutler)) }'`,
`'sha256-${ Base64.stringify(sha256(placeAd)) }'`, `'sha256-${ Base64.stringify(sha256(placeAd)) }'`,
`'sha256-${ Base64.stringify(sha256(placeAdSPA)) }'`,
'*.slise.xyz', '*.slise.xyz',
], ],
'img-src': [ '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