Investigating sporadic 520 Origin Errors affecting a few users WP admin

What is the name of the domain?

What is the error number?

520

What is the error message?

520 Origin Error

What is the issue you’re encountering

A few users, including administrators, are encountering 520 Origin Errors while working in the WordPress admin panel. The issue appears sporadically and has been reported specifically when using Elementor or interacting with dynamic elements such as AJAX requests (admin-ajax.php). The site runs on WordPress with Elementor, WP Rocket, and WordFence, hosted on AWS with PHP 8.0.30. The issue only started after migrating to Cloudflare, and server logs show no errors when the issue occurs.

What steps have you taken to resolve the issue?

•	Enabled Pseudo IPv4 to address potential IPv6 compatibility issues.
•	Added server-related IPs to Cloudflare’s IP Access Rules with an Allow action.
•	Whitelisted Cloudflare’s IP ranges in WordFence to ensure requests from Cloudflare are not blocked.
•	Created a Page Rule to bypass caching for admin-ajax.php.
•	Ensured cookies that shouldn’t be cached are explicitly excluded.
•	Verified header sizes remain below Cloudflare’s limit.
•	Confirmed Rocket Loader is disabled.
•	Checked server logs for errors and found none related to the issue

What are the steps to reproduce the issue?

The error happens sporadically in the WordPress admin area and seems to affect only a few users, particularly when performing AJAX-heavy tasks or using the Elementor editor.

Screenshot of the error

This topic was automatically closed after 15 days. New replies are no longer allowed.