I have set up my RPi 3 as Access Point to use a web-App, which is hostet by a flask server on the Pi. My HTTP-requests are generated by Swagger Codegen. The defined host is set to http://localhost:8080, which can't be changed due to development reasons. When I'm accessing now the web-App on the Pi I use the static IP-address of the Pi (in this case http://192.168.4.1:8080). The web-App is shown but the HTTP-requests won't work because the basePath in my App is set to localhost.
Is there any possibility to solve this problem like pretending the HTTP requests comes from localhost IP.