¿Por qué PHP dice "solicitud de índice indefinido"? El formato json me parece completamente correcto.
let json = JSON.stringify( { request: "getUser" }, { username: "test" } ); const response = await axios.post('http://localhost/projects/serverFiles/index.php', json);
mi php
<?php ini_set("log_errors", 1); header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json'); echo print_r($_POST["request"]); ?>