refactor(tmwebdriver): remove legacy DOM bridge and guard HTTP origin
This commit is contained in:
1 parent
277c4859a4
commit
caa41dd08e
6 files changed
+4
-41
No files matched your search
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user