Fixed web UI redirection.

 - set Access-Control-Allow-Origin and Access-Control-Allow-Methods HTTP
   headers appropriately.