Using one of the provided hooks, you can extend JIRA Service Desk Portal. Having configured access to JSD Portal for anybody, it is not possible to make AJAX-calls in order to get/set values: http-302 redirects are forced to http://localhost:2990/jira/servicedesk/customer/portal/1. it works fine for logged in JSD agents.
What has to be done to successfully process AJAX-calls on JSD Portal for logged in user but not agents?