Revert "changed logic to determine trusted source"

This reverts commit 45affdd7a0907c95026fc39e3a4ab6a779cdaa27.
Revert "added logging to figure out issue on production server"

This reverts commit c9487e5ab3be99e7dc019818ee4807e3555074ba.