LaxSameSiteCookieFailedException.php 625 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\AppFramework\Middleware\Security\Exceptions;
  7. use OCP\AppFramework\Http;
  8. /**
  9. * Class LaxSameSiteCookieFailedException is thrown when a request doesn't pass
  10. * the required LaxCookie check on index.php
  11. *
  12. * @package OC\AppFramework\Middleware\Security\Exceptions
  13. */
  14. class LaxSameSiteCookieFailedException extends SecurityException {
  15. public function __construct() {
  16. parent::__construct('Lax Same Site Cookie is invalid in request.', Http::STATUS_PRECONDITION_FAILED);
  17. }
  18. }