I have issue with wp-json request - cron job

i am trying to create a cron job from my server to trigger some rest api link in my website.
there is 403 error on trying that, the error says : “Enable JavaScript and cookies to continue”, As i understand the issue is that the request is blocked. I heared that there is a way to allow the cronjob wit the cloduflare, but failed in find it. please advice.