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
Forum Updated to NodeBB v4.3 + New Features

QWebEngine hinders github navigation by default

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 249 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 18 Nov 2020, 18:04 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

    1/1

    18 Nov 2020, 18:04

    • Login

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