Bypass Rest API authorization

Hi, is there a way to bypass a need to authorize when using REST API?
My Codesys http_post lacks customizing a header so I cannot add anything beside Content-Type.
I found that it could be bypassed some way like here: https://github.com/AlexxIT/BypassAPI but it doesn’t work for me. I’m getting

Component error: bypass_api - Integration ‘bypass_api’ not found.

It’d be awesome if I could also use some other port for Rest API or restrict access to IP but at first I would like to bypass authorization.

ok, I got rid of one problem, that custom component was placed in a wrong directory but stuck on another one:

Error during setup of component bypass_api
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 213, in _async_setup_component
result = await task
File “/config/custom_components/bypass_api/init.py”, line 22, in async_setup
hass.http.app.middlewares.append(auth_middleware)
File “aiohttp/_frozenlist.pyx”, line 97, in aiohttp._frozenlist.FrozenList.append
File “aiohttp/_frozenlist.pyx”, line 19, in aiohttp._frozenlist.FrozenList._check_frozen
RuntimeError: Cannot modify frozen list.