[stable5] Show warning page when accessing server from an untrusted domain

Backport of https://github.com/owncloud/core/pull/7565 to stable5

@karlitschek @LukasReschke