'Access-Control-Allow-Origin' error for using api in local file
-
Hi
I am using webengineview for displaying html file in QT QML .
i received this error when using api in local html file but my html file works in browser .The 'Access-Control-Allow-Origin' header has a value 'qrc://' that is not equal to the supplied origin. Origin 'qrc://' is therefore not allowed access.
my qml code :
WebEngineView { id: webEnginView settings.localContentCanAccessRemoteUrls: true settings.localContentCanAccessFileUrls : true anchors.fill: parent url: "qrc:/test.html" webChannel: channel }