dsad
This commit is contained in:
7
vuln-lab/web/www/api/me.php
Normal file
7
vuln-lab/web/www/api/me.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?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']);
|
||||
Reference in New Issue
Block a user