How to turn a relative path script (js) import to an absolue one with a url for XSS ? (more details below)

I have a parameter whose value is injected in the HTML as the following
<script src="/dir1/dir2/dir3/dir4/INJECT_HERE"> </script>

I was able to traverse back to just / but when I enter my xss hunter payload (let say … Continue reading How to turn a relative path script (js) import to an absolue one with a url for XSS ? (more details below)