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. How to set QtWebEngine Content-Security-Policy (CSP) to default-src?
Forum Updated to NodeBB v4.3 + New Features

How to set QtWebEngine Content-Security-Policy (CSP) to default-src?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 411 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.
  • ErnestoCOE Offline
    ErnestoCOE Offline
    ErnestoCO
    wrote on last edited by
    #1

    Hello, i have a qtwebengine view inside my app, and I'm having issues with apple music regarding the CPS, for some reason, it is set to script-src

    https://music.apple.com/us/browse:143 Refused to execute inline script because it violates the following Content Security Policy directive: 
    "script-src 'self' https://*.apple.com blob: 'sha256- ....  'unsafe-eval'". 
    Either the 'unsafe-inline' keyword, a hash ....., or a nonce ('nonce-...') is required to enable inline execution.
    

    I don't want to use the --disable-web-security flag to disable CSP, i want to change it to default-src

    does anyone know how to do this?

    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