Give main webview api access

This commit is contained in:
Luc Mcgrady 2025-10-24 09:58:43 +01:00
parent b2fe07462a
commit fc880259a8
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
2 changed files with 1 additions and 3 deletions

View file

@ -814,9 +814,6 @@ def _check_dynamic_request_permissions():
"/_anki/setSchedulingStates",
"/_anki/i18nResources",
"/_anki/congratsInfo",
# TODO: Correctly set the auth token
"/_anki/nextCardData",
"/_anki/setFlag",
):
pass
else:

View file

@ -142,6 +142,7 @@ class AnkiWebPage(QWebEnginePage):
AnkiWebViewKind.IMPORT_ANKI_PACKAGE,
AnkiWebViewKind.IMPORT_CSV,
AnkiWebViewKind.IMPORT_LOG,
AnkiWebViewKind.MAIN,
)
global _profile_with_api_access, _profile_without_api_access