import { TypeOf , schema } from '@osd/config-schema' ; internal export type CspConfigType = TypeOf < typeof config . schema > ; export const config = { path : 'csp' , schema : schema . object ( { rules : schema . arrayOf ( schema . string ( ) , { defaultValue : [ `script-src 'unsafe-eval' 'self'` , `worker-src blob: 'self'` , `style-src 'unsafe-inline' 'self'` , ] , } ) , strict : schema . boolean ( { defaultValue : false } ) , warnLegacyBrowsers : schema . boolean ( { defaultValue : true } ) , } ) , } ;