From 04d5943051b18ba89312021a185977dee7845384 Mon Sep 17 00:00:00 2001 From: Emanuel Duss Date: Tue, 16 Apr 2024 10:55:01 +0200 Subject: [PATCH] Added Referer --- CustomColumn/Proxy/HTTP/Referer.bambda | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 CustomColumn/Proxy/HTTP/Referer.bambda diff --git a/CustomColumn/Proxy/HTTP/Referer.bambda b/CustomColumn/Proxy/HTTP/Referer.bambda new file mode 100644 index 0000000..bd9f6c2 --- /dev/null +++ b/CustomColumn/Proxy/HTTP/Referer.bambda @@ -0,0 +1,10 @@ +/** + * Extracts Referer request header. + * + * Useful to identify sensitive data leakage via Referer header like + * OIDC authorization codes. + * + * @author emanuelduss + **/ + +return requestResponse.request().hasHeader("Referer") ? requestResponse.request().headerValue("Referer") : "";