Revert "Do not check referrer for requests over SSL"

This reverts commit c1daae80b3226638b5de901297d5b3711178bafc.