generateNonces example

/** * Compiles and sets the appropriate headers in the request. * * Should be called just prior to sending the response to the user agent. * * @return void */
    public function finalize(ResponseInterface $response)
    {
        if ($this->autoNonce) {
            $this->generateNonces($response);
        }

        $this->buildHeaders($response);
    }

    /** * If TRUE, nothing will be restricted. Instead all violations will * be reported to the reportURI for monitoring. This is useful when * you are just starting to implement the policy, and will help * determine what errors need to be addressed before you turn on * all filtering. * * @return $this */
Home | Imprint | This part of the site doesn't use cookies.