Z-wave js UI ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default)

I stumbled on a following error in the log of the Z-wave js UI addon:

ValidationError: The ‘X-Forwarded-For’ header is set but the Express ‘trust proxy’ setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See Page Redirection for more information.

when I looked into the link I see that I should add somewhere trust proxy settings, but I can’t get any info where and how I can do it within the addon?
Had annyone issue like that?

You won’t be able to fix that using the add-on. You could try submitting an issue to the add-on project.

It requires modifying the TRUST_PROXY environment variable. https://zwave-js.github.io/zwave-js-ui/#/guide/env-vars?id=environment-variables.

I will report that, but I don’t understand why it happened.
I have another HA instance with same addon and on that machine everything works fine.
They are not exactly same setups, but anyway…

Maybe you just aren’t seeing the logs? It’s been the case for a long time. I think it might only print once per-session, but I can’t remember. Either way, it doesn’t affect anything.

1 Like

It might be, as on the other instance I have enabled driver logs, so I see all activitiy of the devices in the addon log so I may overlook the “X-Forwarded-For” error.
I’ll disable this option and see If it will appear as well.