diff --git a/qt/aqt/mediasrv.py b/qt/aqt/mediasrv.py index 54573680e..3ca47c14b 100644 --- a/qt/aqt/mediasrv.py +++ b/qt/aqt/mediasrv.py @@ -676,6 +676,7 @@ def _check_dynamic_request_permissions(): "Unexpected API access. Please report this message on the Anki forums." ) + print(context, request.headers["Content-type"], request.path) # check content type header to ensure this isn't an opaque request from another origin if request.headers["Content-type"] != "application/binary": aqt.mw.taskman.run_on_main(warn) @@ -685,7 +686,6 @@ def _check_dynamic_request_permissions(): context == PageContext.NON_LEGACY_PAGE or context == PageContext.EDITOR or context == PageContext.ADDON_PAGE - or os.environ.get("ANKI_API_PORT") ): pass elif context == PageContext.REVIEWER and request.path in (