ERR_NETWORK_ACCESS_DENIED pops up when I run html file
-
Hi there,
I am developing an application on Intel based MacOS. I have a html file with a script and I want to display it in QWebEngineView. In Qt 5.14.2 it worked fine, but in Qt 6.4.1 I get a white screen. I used DevTool for debugging QWebEngine and saw the phrase 'Failed to load resource: net::ERR_NETWORK_ACCESS_DENIED'. Strangely, if there is no script file in the html file, there is no problem. My question is:- Has anyone experienced similar issues? How else did you solve it?
- Is there something I need to enable to not get ERR_NETWORK_ACCESS_DENIED ?
- The script in the html file doesn't seem to be recognized at all. There are script tags in the header and body of html, and several functions are declared. However, when calling the count of QWebEnginePage's script function, it is output as 0. How are you using html files and scripts together?