[99s-extend] Cowboy Calling Hostname

Loïc Hoguin essen at ninenines.eu
Wed Oct 9 15:31:04 CEST 2013


cowboy_req:host/1?

Please use the nice manual we have now.

   http://ninenines.eu/docs/en/cowboy/HEAD/manual/cowboy_req

On 10/09/2013 03:27 PM, Lee Sylvester wrote:
> Hi,
>
> When receiving a Cowboy request, is there a way to find out which hostname the user made the request from?  I'm using CORS in my REST and Bullet app, where each call can be made through a given account.  However, I'd like to be able to lock requests for each account to a designated hostname to protect that users account usage.
>
> Thanks,
> Lee
>
> _______________________________________________
> Extend mailing list
> Extend at lists.ninenines.eu
> http://lists.ninenines.eu:81/listinfo/extend
>


-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu



More information about the Extend mailing list