I’m deploying a Directus app on a cloud hosting provider that uses Cloudflare WAF. When I try to log in, the request is blocked with a 403 error.
After investigating, the issue comes from this request made by Directus:
/directus/users/me?fields[]=*&fields[]=role.id
Cloudflare WAF flags this as “parameter pollution” because the same query parameter name (fields[]) appears more than once. I asked the hosting provider to whitelist this behavior, but they refused.
My question is: is there a way to configure Directus to change how this query is generated?
For example, something like:
/directus/users/me?fields[]=*,role.id
instead of multiple fields[] parameters.
Any workaround, configuration option, or supported approach in Directus would be greatly appreciated. Thanks!