Values from netio - API

Hello, I try to get values from my netio.
On this page it is good describe: Netio - Home Assistant

I use this:
– this will send socket and consumption status updates via CGI
– to given address. Associate with ‘System variables update’ event
– to get consumption updates when they show up

local address=‘192.168.1.1:8123’
local path = ‘/api/netio/pdu1’

local output = {}
for i = 1, 4 do for , what in pairs({‘state’, ‘consumption’,
‘cumulatedConsumption’, ‘consumptionStart’}) do
local varname = string.format('output%d
%s’, i, what)
table.insert(output,
varname…‘=’…tostring(devices.system[varname]):gsub(" “,”|"))
end end

local qs = table.concat(output, ‘&’)
local url = string.format(‘http://%s%s?%s’, address, path, qs)
devices.system.CustomCGI{url=url}

If I try manually open this like http://192.168.1.1:8123/api/netio/pdu1

I get message: 401: Unauthorized

Would it be possible to allow api access inside private network? I was add in configuration

http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.1.0/24
ip_ban_enabled: false

and

homeassistant:
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.168.1.0/24

But it not help. Does anyone have a idea?