QWebEngineView javascript fetch CORS error but works on Chrome Desktop
-
wrote on 23 Oct 2023, 10:26 last edited by
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.
-
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.
wrote on 2 Nov 2023, 07:34 last edited by@arshadm25 i have resolved this issue by using the setTransferTimeout method of QNetworkAccessManager.
-