raspap-webgui-mirror/includes/csrf.php
2019-08-07 23:51:22 +02:00

11 lines
222 B
PHP

<?php
include_once('functions.php');
include_once('session.php');
if (csrfValidateRequest() && !CSRFValidate()) {
handleInvalidCSRFToken();
}
ensureCSRFSessionToken();
header('X-CSRF-Token', $_SESSION['csrf_token']);