Safari always uses the document URL as the HTTP referrer when loading modules. HTML defines the referrer for imported modules as the URL of the module that performs the import, both for static imports and (since https://github.com/whatwg/html/pull/9407) for dynamic imports. WPT test: https://github.com/web-platform-tests/wpt/blob/66166fa9af2d53656da3f04a0f5e114e740a00c7/html/semantics/scripting-1/the-script-element/module/module-import-referrer.html
<rdar://problem/112064543>