Browse Source

disable follow_symlinks in static serving for security reason (#2902)

pull/2908/head
僵尸浩 9 months ago committed by GitHub
parent
commit
8d7910cee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      server.py

4
server.py

@ -539,11 +539,11 @@ class PromptServer():
for name, dir in nodes.EXTENSION_WEB_DIRS.items():
self.app.add_routes([
web.static('/extensions/' + urllib.parse.quote(name), dir, follow_symlinks=True),
web.static('/extensions/' + urllib.parse.quote(name), dir),
])
self.app.add_routes([
web.static('/', self.web_root, follow_symlinks=True),
web.static('/', self.web_root),
])
def get_queue_info(self):

Loading…
Cancel
Save