Why ajax request does not work

Ajax requests to the API don’t work because the access token is passed unencrypted.

You must make requests to the API from the server.