src/RollbarJsHelper.php
public function shouldAppendNonce($headers)
    {
        foreach ($headers as $header) {
            if (strpos($header, 'Content-Security-Policy') !== false &&
                strpos($header, "'unsafe-inline'") !== false) {
                return true;
            }
        }
        
        return false;
    }
public function shouldAppendNonce($headers)
    {
        foreach ($headers as $header) {
            if (strpos($header, 'Content-Security-Policy') !== false &&
                strpos($header, "'unsafe-inline'") !== false) {
                return true;
            }
        }
        
        return false;
    }
public function shouldAppendNonce ( $ headers ) { foreach ( $ headers as $ header ) { if ( strpos ( $ header , 'Content-Security-Policy' ) !== false && strpos ( $ header , "'unsafe-inline'" ) !== false ) { return true ; } } return false ; }
Is `nonce` attribute on the script tag needed?

@param array $headers

@return boolean
Is nonce attribute on the script tag needed?