Wordpress Rest API not working when Cloudflare is on

Hi, the website machined .ai is sending Rest API request to my website christianfarioli .com to publish content and if I keep Cloudflare NOT paused, I get error.

here the log of machined .ai:

"Connecting to WordPress site ‘christianfarioli .com/farioli’:

403

Forbidden

“”<html lang="“en-US"”>Just a moment…<meta http-equiv="“Content-Type"” content="“text/html; charset=UTF-8"”><meta http-equiv="“X-UA-Compatible"” content="“IE=Edge"”><meta name="“robots"” content="“noindex,nofollow"”><meta name="“viewport"” content="“width=device-width,initial-scale=1"”><link href="“/cdn-cgi/styles/challenges.css"” rel="“stylesheet"”><meta http-equiv="“refresh"” content="“375"”><body class="“no-js"”><div class="“main-wrapper"” role="“main"”><div class="“main-content"”><div id="“challenge-error-title"”><div class="“h2"”><span class="“icon-wrapper"”><div class="“heading-icon warning-icon"”><span id="“challenge-error-text"”>Enable JavaScript and cookies to continue“”

{}"

I tried creating Page Rules but not working.

After reading online and trying everything for hours,
I need some help from a wizard.

the error log got cutted.
here the sensitive part:

403
Forbidden
Just a moment…Enable JavaScript and cookies to continue(function(){window._cf_chl_opt={cvId: ‘2’,cZone: "“christianfarioli .com"”,cType: ‘managed’,cNounce: ‘18459’,cRay: ‘840448c73d04c606’,cHash: ‘bf7ae21bcb7cf1e’,cUPMDTk: "“\/farioli\/wp-json\/wp\/v2\/posts?__cf_chl_tk=ouRJeJGg.snRuQRjG2rRKTCBHLeMuA1uLHXt6n17xC0-1704379725-0-gaNycGzNDZA"”,cFPWv: ‘g’,cTTimeMs: ‘1000’,cMTimeMs: ‘375000’,cTplV: 5,cTplB: ‘cf’,cK: "“visitor-time"”,fa: "“\/farioli\/wp-json\/wp\/v2\/posts?__cf_chl_f_tk=ouRJeJGg”“,cRq: {ru: ‘aHR0cHM6Ly9jaHJpc3RpYW5mYXJpb2xpLmNvbS9mYXJpb2xpL3dwLWpzb24vd3AvdjIvcG9zdHM=’,ra: ‘Tk9fVUE=’,rm: ‘UE9TVA==’,d: ‘WtgqKUPM=’,cT: Math.floor(Date.now() / 1000),m: ‘ZPtnI3TyexbHQU6uPG+mvqb/u4bUZDo6Rc6GFLZyJiw=’,i1: ‘KFjbWNLgHjLOwgLi9RE3KQ==’,i2: ‘PDqN1R3dMO6JX3EpT2R/eA==’,zh: ‘rnmRlWrg=’,}};var cpo = document.createElement(‘script’);cpo.src = ‘/cdn-cgi/challenge-platform/h/g/orchestrate/chl_page/v1?ray=840448c73d04c606’;window._cf_chl_opt.cOgUHash = location.hash === ‘’ && location.href.indexOf(‘#’) !== -1 ? ‘#’ : location.hash;window._cf_chl_opt.cOgUQuery = location.search === ‘’ && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf(‘?’) !== -1 ? ‘?’ : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null, "”\/farioli\/wp-json\/wp\/v2\/posts?__cf_chl_rt_tk=ouRJeJGg.snRuQRjG2rRKTCBHLeMuA1uLHXt6n17xC0-1704379725-0-gaNycGzNDZA"" + window._cf_chl_opt.cOgUHash);cpo.onload = function() {history.replaceState(null, null, ogU);}}document.getElementsByTagName(‘head’)[0].appendChild(cpo);}());“”

There may be other Cloudflare services that are forcing a challenge for that the URL for whatever reason. You can use the Trace tool to simulate a request passing through Cloudflare’s network.

https://dash.cloudflare.com/?to=/:account/trace

Page Rules is just one area where traffic could be blocked (or unblocked).

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.