Making an AJAX request to an API endpoint directly (without webserver)

We create MWEs as part of our job descriptions when hiring freelancers and our current one requires launching a python API through a simple shell script and opening a simple index.html file in the browser. We can get around the CORS issue(s) by disabling web security on browser launch. However, we can’t seem to get the browser to accept the AJAX call (see below for more details). Is it possible to configure the call so it uses 127.0.0.1 or maybe localhost? Asking our freelancers to set up webservers and/or to port forward their routers would scare many of them away.

AJAX Call:

await $.ajax({
    type: 'POST',
    url: 'http://127.0.0.1/health'
});