diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-10-22 13:47:40 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-10-22 14:00:35 +0200 |
commit | 59a4b477dd922d2f839a717fe199501e7cb71e6e (patch) | |
tree | d6120e13f493ef057ee5445c566e1aca11a9f7f5 /src/hydrilla/proxy/policies/web_ui.py | |
parent | 1fc2dbe5a3e867eb5e6c2f759409f1c94146a794 (diff) | |
download | haketilo-hydrilla-59a4b477dd922d2f839a717fe199501e7cb71e6e.tar.gz haketilo-hydrilla-59a4b477dd922d2f839a717fe199501e7cb71e6e.zip |
[proxy] simplify usage of class variables of `Policy` subtypes
This commit also prevents popup script injection to Haketilo-served pages like `https://hkt.mitm.it/`.
Diffstat (limited to 'src/hydrilla/proxy/policies/web_ui.py')
-rw-r--r-- | src/hydrilla/proxy/policies/web_ui.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hydrilla/proxy/policies/web_ui.py b/src/hydrilla/proxy/policies/web_ui.py index 74a0655..1c32ea9 100644 --- a/src/hydrilla/proxy/policies/web_ui.py +++ b/src/hydrilla/proxy/policies/web_ui.py @@ -41,10 +41,10 @@ from . import base @dc.dataclass(frozen=True) class WebUIPolicy(base.Policy): - """....""" - _process_request: t.ClassVar[bool] = True + _process_request = base.MsgProcessOpt.MUST + _process_response = base.MsgProcessOpt.MUST_NOT - priority: t.ClassVar[base.PolicyPriority] = base.PolicyPriority._THREE + priority = base.PolicyPriority._THREE haketilo_state: state.HaketiloState ui_domain: web_ui.UIDomain |