This ATM application supports both HTTP and HTTPS API endpoints, with special configurations for local development environments.
npm run dev- Serves the application with HTTPS compatibility
- Suitable for production-like testing
- HTTP API endpoints may be blocked by browser security
./start-http.shor
HTTP_MODE=true npm run dev- Enables HTTP API endpoint testing
- Ideal for local development with HTTP APIs
- Bypasses mixed content security restrictions
- Click the settings gear icon
- HTTPS protocol is automatically enforced for production deployments
- Enter your API hostname
- Save configuration
- Start the app in HTTP mode using
./start-http.sh - Access via
http://localhost:5000 - Click the settings gear icon
- Select "HTTP (Development)" protocol (only visible on localhost)
- Enter your API hostname
- Save configuration
Note: HTTP protocol selection is only available when running on developer workstations (localhost, 127.0.0.1, .local domains, or custom ports).
The application automatically detects:
- Localhost: HTTP endpoints work normally
- Remote/HTTPS: HTTP endpoints require HTTP mode access
- HTTPS: Encrypted, secure connections (recommended for production)
- HTTP: Unencrypted connections (development only)
- Mixed Content: Browsers block HTTP requests from HTTPS pages
This indicates mixed content security restrictions. Solutions:
- Use HTTPS for your API endpoint, or
- Access the app via HTTP using
./start-http.sh
Check the browser console (F12) for detailed error messages and request logging.
- Real-time API request/response logging
- Visual protocol indicators (secure/insecure)
- URL validation with error feedback
- Mixed content security warnings
- Environment-specific guidance