perf(core): sanitize the X-Forwarded-* headers in the NGINX config (#13803)