I am making an API for an app (using golang) that will be consumed by different clients. I would know if there is any way to know the domain of the client that is doing the request.
Thank you very much.
I am making an API for an app (using golang) that will be consumed by different clients. I would know if there is any way to know the domain of the client that is doing the request.
Thank you very much.
The http.Request
contains a RemoteAddr
field which should provide the information you seek.