Results 1 to 3 of 3

Thread: QWebview disable security

  1. #1
    Join Date
    Apr 2016
    Posts
    2

    Default QWebview disable security

    Hi,

    I am trying to load some file in QWebView through XMLHttpRequest but unfortunately it is not working since the file source is local (not HTTP). By default Firefox works very well, and in Google Chrome I can achieve this by opening it with argument --disable-web-security , but somehow I cannot manage to make QWebView to allow to load local files with XMLHttpRequest. I have tried many options including set 'LocalContentCanAccessFileUrls' to true, but unfortunately it is not working.

    To keep it short, how can disable security in QWebView same as in the case with Google Chrome's --disable-web-security.

    I am using QT 5.4.2 / Windows

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QWebview disable security

    Have you set LocalContentCanAccessRemoteUrls?

    FileUrls won't help you much, these are obviously also local.

    Cheers,
    _

  3. #3
    Join Date
    Apr 2016
    Posts
    2

    Default Re: QWebview disable security

    yes, I have set both 'LocalContentCanAccessRemoteUrls' and 'LocalContentCanAccessFileUrls' to true but doesn't have any affect.

Similar Threads

  1. Security app
    By user_mail07 in forum Qt Programming
    Replies: 3
    Last Post: 11th March 2011, 08:47
  2. SSL client security
    By Koas in forum Qt Programming
    Replies: 3
    Last Post: 12th July 2010, 14:13
  3. Norton Internet Security
    By GTBuilder in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd June 2010, 19:33
  4. Disable context menu in QWebView
    By ivi2501 in forum Qt Programming
    Replies: 3
    Last Post: 26th August 2008, 10:59

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.