8 lines
280 B
PHP
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']);
|