Wordpress Application Credentials stopped working

Describe the problem/error/question

WordPress API credentials suddenly stopped working. They were fine for many months. Before anyone comments, I’m using the application password and not the regular password to connect.

What is the error message (if any)?

image

Information on your n8n setup

  • **n8n version: 1.99.1
  • **Database (default: SQLite): SQLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • **Operating system: n/a

It works fine through Postman, but I’m getting 403 with a HTTP Request Node


  1. Switch your HTTP Request node to true “Basic Auth” mode
  • In “Authentication” choose Basic Auth (not “Generic Credential”)
  • Enter your WordPress username and application password in the dedicated fields
  • Leave Send Query Parameters and Send Headers off
  1. Disable redirect-following (WordPress sometimes returns a 302→login page before the 403)
  • Under Options, set Follow Redirects to Off
  1. Re-run the node
  • You should now see a clean 200 with your user JSON rather than the Cloudflare/WordPress HTML challenge

By using the built-in Basic Auth mode (which pre-sends the Authorization: Basic ... header) and preventing the HTTP client from auto-following the 302→login redirect, you’ll avoid the 403 HTML page and get the proper API response.

1 Like

There are only 2 options for Authentication: Predefined Credential Type and Generic Credential Type

Basic Auth option is available only on the Generic Credential Type

I switched to Predefined and chose WordPress API.

neither works :frowning:

Done, but still not working

Found the issue: Cloudflare bot detection :weary_face:

Can confirm: it’s bot-detection.

Though not necessarily Cloudflare. Sometimes your own hoster will think you’re a bot and block you.

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