First of all the request doesn\'t work only for Safari, but it works for Chrome and FF.
Client code is super simple here: