Referer header in conn req_headers

sorry for my bad english

is there any way to fetch referer url from conn?
the app serves javascript code based on the url of the host it was called from.
eg ->
lets say www.client-host.com?param1=value has script tag as <script src="our_elixir_app.com/:token"></script> how can we get the url i.e www.client-host.com?param1=value from conn.

Thanks in advance

get_req_header(conn, "referer")

1 Like