I'd like to write a script to make REST API requests to some address. The problem is, that the address might not be accessable by everyone and also uses a token for authorization, which I wouldn't like to give away. So, my idea is to make a request to this API, trigger is a button within a webpage, but the request itself should be sent from the server itself, who's hosting the webpage, but I don't know if this is makeable.
I already wrote a sample script, which creates a request from within the browser. It works, but only for those clients, which have access granted to the server via firewall.
Expected result is that the webpage is showing from results when the script is executed.