Hi @Fabien GRANGE , Welcome to Microsoft Q&A forum and thanks for reaching out here. As per your confirmation, my understanding is that your ODATA service and the SHIR are on the same server and resulting in above error message. But when you install the SHIR in you local machine it is working fine.
Looking at this statement from error log: Microsoft.DataTransfer.SecurityValidation.**HostValidator**.IsAllowedHost(String host, NetworkType networkType, Boolean enableLocalMachineAccessFromOnPremise, Action`1 writeAccessDeniedLog, Action`1 writeDnsFailureLog, Boolean throwExceptionUponValidationFailure
The host validation is causing the problem here. By default, the local machine access is disabled for security reason. Which is why it is failing with above error message.
Ref document: Set up an existing self-hosted IR via local PowerShell
If needed, you can opt out this security feature by leveraging SHIR command line (-EnableLocalMachineAccess
) as shown in above image. (Note: Making a request from SHIR to local IP is not a secure behavior, so that product team blocked any localhost access from SHIR). But if your requirement needs SHIR to access the local host then you can enable local machine access using above powershell command on the server where SHIR is hosted.
Workaround 2: Ideal way is to have your SHIR installed on different server than that of your ODATA host server. Hope this info helps.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.