send proper csrf header

This commit is contained in:
glaszig
2019-08-07 23:53:04 +02:00
parent 1fddad190f
commit 56097d5629
3 changed files with 1 additions and 12 deletions

View File

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