#failed to fetch 2.0
44 messages · Page 1 of 1 (latest)
my app runs on remote linux server. Frontend runs on nginx and backend is a java app
i am lost. What to do in that situation?
Enable HTTPS?
i enabled it
with this
i changed my rul several times:
https
http
domain instead of localhost
ip of server instead of localhost
Tried to add meta tag
Nothing worked
dafaq? enabling https has nothing to do with meta tags
then what do you mean?
And can i ask you to answer to messages, so i can get pinged
enable HTTPS on your server and point to that URL. stop attempting to use HTTP for the API
with what little information you provided, it sure sounds like you should be able to just set up an nginx reverse proxy for the API routes
"enable HTTPS on your server" on remote server?
The API server (as I said)
my API server is java spring boot app and it accepts https requests
Then stop sending HTTP requests…
I changed to https
but nothing changed
look
Clearly your API server is not accepting HTTPS connections on port 8080
I tried to make request with curl from terminal of remote server
and it worked
congrats
thanks, but i still get the error
it only means, that backend is fine
and problem is with frontend
not necessarily
maybe nginx
explain please
all sorts of things on the backend could allow local connections but not remote connections (firewalls, nginx configs, etc.). what is behind the red line?
if it's localhost or 127.0.0.1, that's possibly your issue. if not, nginx is probably not configured to handle whatever host/port it is
IP of server
that's meaningless. it could be a LAN IP or a localhost IP, which wouldn't be accessible from elsewhere
i mean IP of remote server
...

so what do you suggest to do?
So i tried to configure nginx, but maybe something is missing. What config should i check?
I figured it out
lmao
thanks for help, mr ironic
but now i have new errors😁
not sure what part of my comments would be ironic, but okay