Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebEngine hinders github navigation by default
Qt 6.11 is out! See what's new in the release blog

QWebEngine hinders github navigation by default

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 442 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cfre
    wrote on last edited by Cfre
    #1

    I'm working on a web browser and without changing any QWebEngineSettings, github can't load the necessary javascript.

    QWebEngines javascript output when visiting github

    The Content-Security-Policy directive 'worker-src' is implemented behind a flag which is currently disabled.
    Uncaught TypeError: this.toggleAttribute is not a function
    Uncaught TypeError: this.toggleAttribute is not a function
    Uncaught (in promise) ReferenceError: AbortController is not defined
    ...
    

    And so on, I've tried setting

    settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
    settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, true);
    

    And made sure they are enabled, yet without any success. Do anyone happen to know which security policy I have to change to make github work?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved