Question
There is an anonymous table from which data is sent to remote via API. When the data arrives, it is inserted into this anonymous table (by hash). The question is, what could be the possible reason that everything works from the admin panel, but not through the anonymous one? The anonymous user has access to all the necessary tables.
Answer
The fact is that for security reasons, access to temporary tables is only possible from the user who created them, in order to prevent a hash collision attack.
And when a remote is executed, there is a mismatched user.
To perform such an action, you need to select a dynamic user in remotes, then the user's id
must be passed in the GET
variable ttm_user
with the id
of the user in the system from which this remote should be executed.