Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/module-csp/Api/Data/
Upload File :
Current File : //home/rtorresani/www/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.
 *
 * @api
 */
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;
}