aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-12-24 06:58:28 +0000
committerGitHub <noreply@github.com>2022-12-24 06:58:28 +0000
commitfac92610d22d1166890b17b167c034090a096e5a (patch)
tree059e9c4d3314278472b8f4e1b0a14b59952d7973 /webui.py
parent94450b88775ee14392d05ef6a8fc915b93946b9e (diff)
parentc0355caefe3d82e304e6d832699d581fc8f9fbf9 (diff)
downloadstable-diffusion-webui-gfx803-fac92610d22d1166890b17b167c034090a096e5a.tar.gz
stable-diffusion-webui-gfx803-fac92610d22d1166890b17b167c034090a096e5a.tar.bz2
stable-diffusion-webui-gfx803-fac92610d22d1166890b17b167c034090a096e5a.zip
Merge pull request #5753 from calvinballing/master
Fix various typos
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/webui.py b/webui.py
index 18ee5a3d..3aee8792 100644
--- a/webui.py
+++ b/webui.py
@@ -154,8 +154,8 @@ def webui():
# gradio uses a very open CORS policy via app.user_middleware, which makes it possible for
# an attacker to trick the user into opening a malicious HTML page, which makes a request to the
- # running web ui and do whatever the attcker wants, including installing an extension and
- # runnnig its code. We disable this here. Suggested by RyotaK.
+ # running web ui and do whatever the attacker wants, including installing an extension and
+ # running its code. We disable this here. Suggested by RyotaK.
app.user_middleware = [x for x in app.user_middleware if x.cls.__name__ != 'CORSMiddleware']
setup_cors(app)