Skip to content

settings: Ensure client IP is correctly extracted from HTTP header

The X-Original-Forwarded-For header value has the following format:

client[, proxy1, proxy2]

So ensure to handle all cases when extracting client IP from it to avoid error when django-ratelimit processes a content view request.

Fixes SWH-WEBAPP-5S4.

Merge request reports