HTTP access to a folder (need for uploaded media) 401 unathorized

Hi,
I need access to a folder via HTTP for share some images. I try access to “media” folder via http:
http://homeassistant.local:8123/media/local/tvidle.jpg

but it return 401, because access token is required.

I try allow access via configuration, but not working:

homeassistant:
  allowlist_external_urls:
    - "http://homeassistant.local:8123/media/local"
    - "http://homeassistant.local/media/local"
    - "http://homeassistant.local:8123/media/local/tvidle.jpg"
  allowlist_external_dirs:
    - "/media"
    - "/share"

I try “share” folder too, but I don`t know which URL is for this folder:

For some custom panels I need access to a images as background etc. directly without token. But I dont know where can I place it and how get HTTP.

Thank you for any help.

1 Like

I found solution HTTP - Home Assistant

Hello, could you elaborate a little what you have done please ?

I have the exact same problem but nothing in the HTTP documentation helped me. I tried the /config/www folder instead of the media one as well but no change.

I use HA in a docker container.

I don’t know if you still need help, but that’s what worked for me:

create a folder inside /config/www and name whatever you need

type the address changing /config/www/ with /local/

so if the folder is http://HA.IP:8123/config/www\YOUR.FOLDER

type in the address bar of your browser http://HA.IP:8123/local/YOUR.FOLDER