Skip to content

Do not installed Webui under a directory with leading dot (.) #13292

@w-e-w

Description

@w-e-w

If you're seeing this
image

make sure you did not place your webui install under a directory or subdirectory that has a leading dot (.)

example

B:\Downloads\.subdir\sd.webui
             ^

the reason
since Gradio version 3.33.0, they add a new security feature that blocks files under a dot directory to be served

The /file= route no longer allows accessing dotfiles or files in "dot directories" by @akx in gradio-app/gradio#4303

in webui 1.6.0 we switch from Gradio 3.32.0 -> 3.41.2, and so the browser will not be able to access webui files if it is installed under a dot dir

related issues
#12474 (comment)
vladmandic/sdnext#2106

note this may also has an effect on certain extensions, if they have files that are intend to be served but are named with a leading dot


another cause of CSS not loading is if you launch webui from a different work directory then webui root
#13210 (this fix in in dev branch but not yet in master)
so if you are experiencing similar issue to above but webui is not installed under a dot dir make sure the wrok dir is webui root

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions