A Microsoft está a bloquear autenticação básica (Username e password) quando usada com recursos Microsoft Office (Word, Excel, …), pelo que ao se aceder a um servidor que efetue a comunicação por Webdav apresenta o erro:

“Microsoft Office has blocked access to "HOST" Because the source uses a sign-in method that may be unsecure. We recommend contacting your IT support to discuss how to make this file more secure.”

Obrigando a que se efetue Cancel, Cancel e Editar em cada ficheiro que se pretende abrir.

De acordo com a informação da Microsoft https://learn.microsoft.com/en-us/deployoffice/security/basic-authentication-prompts-blocked referente ao fluxo de validação, permite se o hostname estiver numa “allow list“.

Workaround – adicionar o hostname no “basic host allow list”

Seguir os seguintes passos:

  1. Executar o Command Prompt e Run as administrator
  1. Executar o comando (substituir HOSTNAME pelo nome do servidor webdav onde estão os ficheiros, sem colocar o https://):
 REG ADD HKEY_CURRENT_USER\Software\Policies\Microsoft\Office.0\Common\Identity /t REG_EXPAND_SZ /v basichostallowlist /d "HOSTNAME"

3. Fechar a linha de comandos e testar novamente a abertura do ficheiro.


Este artigo foi útil?

Duarte Spínola

5 Respostas para “Webdav Erro Microsoft Office has blocked access (workaround)”

  1. Hicka

    We had a user that encountered this when trying to attach files to a mail via Outlook, and the fix worked just fine.
    Then another user with the same issue when trying to open excel, logged into regedit and modified as the post says and it worked.

    After almost a month, a third user notified us of the same error but this time adding the Identity folder and the basichostallowlist key didn’t fix the issue
    Anyone has any idea what could be the problem? We have a proxy on but looking at the connections nothing gets blocked

    Responder
  2. Alberto

    He realizado la operación, pero sigue dando error. ¿Es posible que sea porque no incluye las subcarpetas? Y si es así, ¿existe alguna configuración que las incluya?
    En https://answers.microsoft.com/es-es/msoffice/forum/all/problema-abrir-archivo-office-365-a-trav%c3%a9s-de/8ac3f21e-b55c-45a8-ba49-c0e2e6aaa2e4 hice la consulta detallada con capturas de pantalla, y me remitieron a esta solución, pero no sé si estoy haciendo algo mal, porque sigue apareciendo el molesto error.
    Muchas gracias de antemano

    Responder
    • Duarte Spínola

      Por ejemplo, si el dominio donde está o(s) los archivo(s), es drive.exemplo.com, el comando tendrá que ser:

      REG ADD HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Common\Identity /t REG_EXPAND_SZ /v basichostallowlist /d “drive.exemplo.com”

      Responder
  3. Somebody

    And what happens if you need to unblock more than one domains?

    Responder
    • Duarte Spínola

      In the Regedit (HKEY_CURRENT_USER\Software\Policies\Microsoft\Office.0\Common\Identity), edit the Value: basichostallowlist and enter the hosts, separating the host names with a semi-colon. For example: server1.kbase.pt; server2.kbase.com

      Responder

Deixe um Comentário