The idea was to allow users to enter a URL inside the application that would send a request to my backend, fetch the data, and load it into a local cache (Apollo/GraphQL). The only sensitive data sent to the server is a JWT attached in the headers with a user ID. The app is hosted on heroku with config vars with a mongo URI.
If this is not safe (potential SSRF attack), are there any ways to mitigate this kind of attack? I am curious what information is exposed if the attack succeeds.