Next.js server action is now getting challenged

What is the name of the domain?

pks.raenonx.cc

What is the error number?

403

What is the error message?

(N/A)

What is the issue you’re encountering

Next.js would sent a server action using HTTP POST to an URL, like https://pks.raenonx.cc. Previously, it wouldn’t get challenged, but now it requires everyone to pass the challenge. Since this is a browser fetch() request, the challenge will always fail. This is causing a big problem to our site.

Was the site working with SSL prior to adding it to Cloudflare?

Yes

What is the current SSL/TLS setting?

Flexible

What are the steps to reproduce the issue?

  1. Go to https://pks.raenonx.cc
  2. Click on “Login”
  3. The site will not be able to work, showing “Error: An unexpected response was received from the server.” Investigating it further will see the response header “Cf-Mitigated: challenge”

Screenshot of the error