# Many pages (webviews?) are not working

**URL:** <https://forums.ankiweb.net/t/many-pages-webviews-are-not-working/42189>\
**Category:** Help\
**Created:** [March 9, 2024, 11:14am UTC](https://forums.ankiweb.net/t/many-pages-webviews-are-not-working/42189 "2024-03-09T11:14:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurelivia](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/aurelivia/32/19554_2.png) [@aurelivia](https://forums.ankiweb.net/u/aurelivia)\
**Post date:** [March 9, 2024, 11:14am UTC](https://forums.ankiweb.net/t/many-pages-webviews-are-not-working/42189/1 "2024-03-09T11:14:48Z")

</div>

Running Anki Desktop 23.12.1 on Windows 10, many pop-ups which I’m assuming given their content are webviews are not rendering. They open, but just display a raw HTML header, presumably awaiting attachment by a web framework that never arrives. Tried this using both the Qt5 and 6 builds available via the installer, as well as cloning and building myself.

So far I’ve encountered the import dialog, the statistics window, and the deck options window, and I’m not actually certain that all are failing for the same reason. I’ve tried to run the chrome debugger, and unfortunately it doesn’t work, as apparently the remote-allow-origins flag is being ignored and I’m not familiar enough with the tool to figure out why. All I can say is that at least in the case of deck-options there’s an uncaught error, “anki is not defined”. I don’t see anything in the terminal for the other pages.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 10, 2024, 4:19am UTC](https://forums.ankiweb.net/t/many-pages-webviews-are-not-working/42189/2 "2024-03-10T04:19:58Z")

</div>

Could you please provide some screenshots of what you’re seeing? Do you use any antivirus/firewall/VPN/etc software that might be intercepting Anki’s (internal) network connections?

---

<div class="post-metadata">

**Author:** ![aurelivia](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/aurelivia/32/19554_2.png) [@aurelivia](https://forums.ankiweb.net/u/aurelivia)\
**Post date:** [March 10, 2024, 10:22am UTC](https://forums.ankiweb.net/t/many-pages-webviews-are-not-working/42189/3 "2024-03-10T10:22:19Z")

</div>

They’re all just raw HTML, for example the deck-options page:

 ![example](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/6/5/656a2fada4fe10869a8874e8b2a225c7b62caa69.jpeg)  
where I do get the output `anki is not defined` in the terminal running the app. All other pages look the same as this but pointed to their respective pages.

As far as I’m aware, I don’t have any antivirus (besides the Windows default ones, which I tried disabling to no effect) or VPN running which could interfere with this.

Update, in the process of filling this out I did realise that my browser was blocking all CORS requests for some reason and by disabling that the browser inspector does actually work now. So, looks like the error for deck-options is on the line

```js
const $deckOptions = anki.setupDeckOptions({self._deck["id"]});

```

in qt/aqt/deckoptions.py:55. In the case of the Stats page, though, there’s no error in the console either. I’m not sure if this is to be expected given the nature of the app, but I don’t see any other source files being pulled besides the HTML document.

I don’t see how this would even work, but I’m assuming the webview isn’t doing something like opening an instance of my actual default browser somehow, otherwise I could see how that might be a problem given the security protections it has.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 11, 2024, 5:29am UTC](https://forums.ankiweb.net/t/many-pages-webviews-are-not-working/42189/4 "2024-03-11T05:29:15Z")

</div>

In the windows that pop-up, do they have menus/icons that look like your browser, or do they only have the HTML text you included above?

If the latter, perhaps the issue is your machine is sending the wrong content type for .html files, like in this issue:

> [@Anki is unable to display any SVG images on my computer](https://forums.ankiweb.net/t/anki-is-unable-to-display-any-svg-images-on-my-computer/33525/12):
>
> Maybe the mime type for .svg is set incorrectly in the registry. It displays broken for me too if it set it to plain/text. Open the Start menu and type regedit to open Registry Editor In the address bar paste Computer\HKEY\_CLASSES\_ROOT\.svg and press Enter to quickly go to it. If the Content Type is set to text/plain, set it to image/svg+xml Restart Anki.

---

<div class="post-metadata">

**Author:** ![aurelivia](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/aurelivia/32/19554_2.png) [@aurelivia](https://forums.ankiweb.net/u/aurelivia)\
**Post date:** [March 11, 2024, 6:00pm UTC](https://forums.ankiweb.net/t/many-pages-webviews-are-not-working/42189/5 "2024-03-11T18:00:05Z")

</div>

Yep. That was it. .html was set to text/plain, possibly by my editor. Changed it to text/html and now the views work properly. So I guess this issue can be considered resolved, although I personally would advocate for untangling those so as to not have to manually update the registry to get the app to work. But in any case, thank you for your assistance, I appreciate it!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [April 10, 2024, 6:00pm UTC](https://forums.ankiweb.net/t/many-pages-webviews-are-not-working/42189/6 "2024-04-10T18:00:08Z")

</div>

Closed on April 10, 2024, 6:00pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
