mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
16 lines
270 B
TypeScript
16 lines
270 B
TypeScript
import type CspDev from 'csp-dev';
|
|
|
|
import config from 'configs/app';
|
|
|
|
export function growthBook(): CspDev.DirectiveDescriptor {
|
|
if (!config.features.growthBook.isEnabled) {
|
|
return {};
|
|
}
|
|
|
|
return {
|
|
'connect-src': [
|
|
'cdn.growthbook.io',
|
|
],
|
|
};
|
|
}
|