How to get Referer value that is added to the requst while sendimg

im trying to get a headers value - Referer that added while sendeing my request.
i tried to get it with pm.request.headers.get(“Referer”)
but it doesnt work.
when im printing the headers list to console also its not there.
but when im loojing to the request properties after sending it shows!

Hey @kjleshem!

Welcome to the community :partying_face:!

If you want to retrieve the header value before sending the request, in your Pre-request Script, try adding the following code.

var all_headers=pm.request.getHeaders();
var result=all_headers.Referer;
console.log("header : " + JSON.stringify(result));

Good luck.