I've got some REST API's working with FastAPI and Hypercorn.
Now I'm configuring hypercorn with logging, https, etc... but I'm having some trouble with the server_names option.
Trying to make it so that only my computer can get the results from the API and everything else gets 404 but with no success.
This is what I've tried
server_names = ["192.168.1.1"]
server_names = ["MyMachineName"]
I'm working on company network and there's no network restrictions.
The requests all go through a proxy mypc -> proxy -> api
Without the server_names line in the config file I get results when calling the API.
Any help would be appreciated!
TY