The srcdoc iframe below should use this document's URL as its referrer. -------- Frame: '-->' -------- This iframe logs information about its referrer: -------- Frame: 'tg' -------- HTTP Referer header is http://127.0.0.1:8000/security/srcdoc-inherits-referrer-for-forms.html Referrer is http://127.0.0.1:8000/security/srcdoc-inherits-referrer-for-forms.html