diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-21 04:59:57 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-21 05:48:45 +0000 |
commit | b4d21e7113384bbb592bbd79bca06aeb9e4d640a (patch) | |
tree | b6f73a85433b4bd78e7b59a1ec745c0982269b76 /modules/shared_options.py | |
parent | d722d6de36fe9802360232283d14a4c62e08d4af (diff) | |
download | stable-diffusion-webui-gfx803-b4d21e7113384bbb592bbd79bca06aeb9e4d640a.tar.gz stable-diffusion-webui-gfx803-b4d21e7113384bbb592bbd79bca06aeb9e4d640a.tar.bz2 stable-diffusion-webui-gfx803-b4d21e7113384bbb592bbd79bca06aeb9e4d640a.zip |
prevent API options from being changed via API
Diffstat (limited to 'modules/shared_options.py')
-rw-r--r-- | modules/shared_options.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/shared_options.py b/modules/shared_options.py index 5f30e8e9..6f1a738d 100644 --- a/modules/shared_options.py +++ b/modules/shared_options.py @@ -112,9 +112,9 @@ options_templates.update(options_section(('system', "System"), { }))
options_templates.update(options_section(('API', "API"), {
- "api_enable_requests": OptionInfo(True, "Allow http:// and https:// URLs for input images in API"),
- "api_forbid_local_requests": OptionInfo(True, "Forbid URLs to local resources"),
- "api_useragent": OptionInfo("", "User agent for requests"),
+ "api_enable_requests": OptionInfo(True, "Allow http:// and https:// URLs for input images in API", restrict_api=True),
+ "api_forbid_local_requests": OptionInfo(True, "Forbid URLs to local resources", restrict_api=True),
+ "api_useragent": OptionInfo("", "User agent for requests", restrict_api=True),
}))
options_templates.update(options_section(('training', "Training"), {
|