Making a Proxy URL for a Jira plugin

Hi,

I am trying to create a URL for my plugin which can be accessed directly given that they are authenticated in Jira. A user will use Jira Url plus some path which will act as a proxy url for the actual url of the plugin. In short, instead of redirecting or opening the url inside a iframe, i want jira url to act as a proxy and it fetches and generate the HTML page of my plugin.

Example, <jira_url>/proxy/display?params=param1 will act as a proxy url for <plugin_url>/get/entity?params=param1

Thanks in advance.