dsad
This commit is contained in:
13
vuln-lab/web/www/api/user.php
Normal file
13
vuln-lab/web/www/api/user.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?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([
|
||||
'id' => 1,
|
||||
'username' => 'admin',
|
||||
'email' => 'admin@insecure.newploit.com',
|
||||
'role' => 'admin',
|
||||
'api_key' => 'sk_live_newploit_AKIAIOSFODNN7EXAMPLE',
|
||||
]);
|
||||
Reference in New Issue
Block a user