Access Denied + Cloudflare?

Created on 7 October 2024, about 2 months ago

Problem/Motivation

Webmasters have reported an increased occurrence of Access Denied / logout issues when trying to switch / unswitch using the masquerade module. I've replicated this across a handful of sites, both Drupal 7 and 10. At first I thought that it was tied to a particular hosting environment, but in more testing Cloudflare appears to be a more likely common link.

These sites have had no other code updates in the last two weeks, but early last week this started occurring. I started using Cloudflare proxy on a dev environment on a test server and the issue started happening there - it usually isn't upon the first "switch", but highly repeatable when switching back or trying to switch to another user after switching back.

I've attempted making sure that we're correctly getting the proxy IP in case that was somehow tied to it, and have tried disabling caching on the CF side (but keeping the proxy layer on).

Anyone else experiencing this?

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States matthensley Portland, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024