Files
PocketPentester/vuln-lab/web/www/api/me.php
2026-04-19 21:10:40 +07:00

8 lines
280 B
PHP

<?php
header("Content-Type: application/json");
if (!empty($_SERVER['HTTP_ORIGIN'])) {
header("Access-Control-Allow-Origin: " . $_SERVER['HTTP_ORIGIN']);
header("Access-Control-Allow-Credentials: true");
}
echo json_encode(['username' => 'guest', 'role' => 'anonymous']);