I'm eager to establish a secure AJAX call and response between the client and server.
To enhance security, I encrypt my AJAX request using an encryption method and route it like so:
url: "/site/web/J+CVKhtwFK9VwSZYiza8zr8YUqWK62VSkobVfgB3+1s="
This setup is functioning correctly.
However, a concern arises when I retrieve the AJAX response from the server. By simply navigating to 'Network' in Google Chrome and inspecting the response, I am able to view its content. Here is an example:
{"d":{"__type":"unproject.Services.Services+retvalMessage","retval":"1","message":"ok"}}
My query now is how can I safeguard this response or prevent unauthorized users from accessing its contents?