I'm using pdf.js out of the resource system (qrc) and if I want to load a local pdf file the engine moans:
I've tried, as the documentation stated about the QWebEngineSettings, to disable the cross origin rule via QWebEngineSettings::LocalContentCanAccessRemoteUrls.
I've set this attribute in the WebEngineView and in the WebPage too, but it doesn't solve the issue.
I've tried QWebEngineSettings::LocalContentCanAccessFileUrls additionally too, without any effect.
There was no other way to turn it off as setting up the argument "--disable-web-security" for QApplication during the start.
I would say it's a bug, or?