🔍 NexusIT API Connection Diagnostic
Use this page to diagnose API connection issues. Open this file at:
https://yourdomain.ae/api-test.html
Step 1 — Set your API URL
Backend API URL
Test /health
Step 2 — Test Login Endpoint
Username
Password
Test Login
Test CORS Headers
Common Causes & Fixes for "Invalid JSON"
Node.js app not started
— cPanel → Node.js Apps → click
Start
Wrong DB credentials
— Check
DB_NAME
in env (must be
cpanelusername_dbname
)
NPM install not run
— cPanel → Node.js Apps → click
Run NPM Install
.htaccess proxy broken
— API URL must match the port your Node.js app runs on
App crashes on startup
— cPanel → Node.js Apps →
Error Log
button
CORS not configured
— Set
FRONTEND_URL=https://yourdomain.ae
in Node.js env vars
Wrong API URL in index.html
— Use the Setup Box on the login page to correct it
Direct Links to Test