import { string } from '@poppinss/utils/build/helpers' ; import { ResponseConstructorContract } from '@ioc:Adonis/Core/Response' ; /**
 * Sharing CSP nonce with the response
 */ export default function responseBinding ( Response ) { Response . getter ( 'nonce' , ( ) => { return string . generateRandom ( 16 ) ; } , true ) ; }