Revert "using HTTP_ORIGIN instead of request_hostname"

This reverts commit 29064b817700f06b863f2cf12c4e820a90081d91.