CORS error in an 'API Action' running inside an 'Action Scheduler'

I have a routine within an 'Action Scheduler' where I perform a 'GET' request to a service to check its status. It's returning a 'Cors' error.

What's strange is that the same routine for querying 'API Action' exists in the backend, and there we don't have this error.

Another point I can't understand is that within the 'Action Scheduler' action, I can query the status normally.

Can anyone help me resolve this issue?

I managed to solve it by replacing the API Action in the Action Scheduler; I added a Server Connect and executed the same action on the backend.

I don't know why it didn't work with the action on the frontend.