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. QWebEngineView javascript fetch CORS error but works on Chrome Desktop
Forum Updated to NodeBB v4.3 + New Features

QWebEngineView javascript fetch CORS error but works on Chrome Desktop

Scheduled Pinned Locked Moved Solved QtWebEngine
2 Posts 1 Posters 299 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    arshadm25
    wrote on last edited by
    #1

    Re: QWebEngineView javascript fetch CORS error but works on Chrome Desktop

    I encountered a challenge while developing a web browser using PyQt's QWebEngineView. It functions well for most websites, but when accessing certain sites, I encounter CORS errors for specific APIs. Strangely, when I check the same website in Google Chrome, I'm able to access the desired results. It's important to note that I'm working with remote websites rather than local files on my computer.

    A 1 Reply Last reply
    0
    • A arshadm25

      Re: QWebEngineView javascript fetch CORS error but works on Chrome Desktop

      I encountered a challenge while developing a web browser using PyQt's QWebEngineView. It functions well for most websites, but when accessing certain sites, I encounter CORS errors for specific APIs. Strangely, when I check the same website in Google Chrome, I'm able to access the desired results. It's important to note that I'm working with remote websites rather than local files on my computer.

      A Offline
      A Offline
      arshadm25
      wrote on last edited by
      #2

      @arshadm25 i have resolved this issue by using the setTransferTimeout method of QNetworkAccessManager.

      1 Reply Last reply
      0
      • A arshadm25 has marked this topic as solved on

      • Login

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