CDB-2819 #resolve - api_key empty for sql requests within public view