Problem
script.js has a hardcoded URL for the check endpoint (https://cybershield-sxz0.onrender.com/check). This prevents developer testing against a locally running server.js instance.
Proposed Solution
Detect if the frontend is loaded on a local domain (localhost/127.0.0.1) and dynamically fallback to the local host port (or configurable port) for api calls.
Problem
script.jshas a hardcoded URL for the check endpoint (https://cybershield-sxz0.onrender.com/check). This prevents developer testing against a locally runningserver.jsinstance.Proposed Solution
Detect if the frontend is loaded on a local domain (localhost/127.0.0.1) and dynamically fallback to the local host port (or configurable port) for api calls.