refactor(tmwebdriver): remove legacy DOM bridge and guard HTTP origin

This commit is contained in:
Jiaqing Liang committed 2026-07-22 15:48:12 +08:00
1 parent 277c4859a4
commit caa41dd08e
6 files changed
+4 -41

No files matched your search

+2
View File
@@ -52,6 +52,8 @@ class TMWebDriver:
def start_http_server(self):
self.app = app = bottle.Bottle()
@app.hook('before_request')
def reject_web_origin(): request.headers.get('Origin') is not None and bottle.abort(403)
@app.route('/api/longpoll', method=['GET', 'POST'])
def long_poll():