Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-csp/Api/Data/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/magento/module-csp/Api/Data/ModeConfiguredInterface.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\Csp\Api\Data;

/**
 * CSP mode.
 */
interface ModeConfiguredInterface
{
    /**
     * Report only mode flag.
     *
     * In "report-only" mode browsers only report violation but do not restrict them.
     *
     * @return bool
     */
    public function isReportOnly(): bool;

    /**
     * URI of endpoint logging reported violations.
     *
     * Even in "restrict" mode violations can be logged.
     *
     * @return string|null
     */
    public function getReportUri(): ?string;
}