🌐 API Configuration Settings

â„šī¸ What is this?
Configure the API base URL to connect to a different server/database. Useful for:
  • Connecting to a remote production server
  • Testing against staging environments
  • Switching between local and cloud databases
Current Configuration
API Base URL: Loading...
Environment: Loading...
Status: Loading...
Set Custom API URL
Enter the full base URL (e.g., https://api.example.com or http://192.168.1.100:8000)
Quick Actions
Connection Test
âš ī¸ Important Notes:
  • The remote server must have CORS enabled for your domain
  • Session cookies may not work cross-origin (use token auth)
  • Always use HTTPS for production servers
  • Changes take effect immediately for new requests
Developer Console Commands

You can also use these commands in the browser console:

// Set custom API URL
setApiUrl('https://api.example.com')

// Reset to default
resetApiUrl()

// Get current config
getApiInfo()

// Test a specific endpoint
fetch('/api/risks').then(r => r.json()).then(console.log)