in content/30_containerize-app/app/src/main/java/com/atlassian/jira/jsw/sample/dataprovider/ProxyController.java [80:92]
void post(@RequestParam String hostBaseUrl,
HttpServletRequest httpRequest,
HttpServletResponse httpResponse) throws IOException {
final String proxyPath = extractActualRequestPathPath(httpRequest);
if (!whitelistService.isAllowed(proxyPath)) {
httpResponse.sendError(403, "Forbidden");
return;
}
final String requestUrlWithQueryParams = buildUrlWithQueryParams(hostBaseUrl, httpRequest, proxyPath);
httpCommonOperations.post(httpRequest, httpResponse, requestUrlWithQueryParams);
}