Setting headers in QML app
-
Hey folks,
I'm working on a pure QML app and am looking to set a header before the page loads (Access-Control-Allow-Origin in fact). Having a tough time finding an answer through the QT docs, so does anyone have a working example of doing this (if it's possible even). Thanks!
-
maybe you should rename the topic differently as an header is more a visual component at the top of the screen when talking QML.
You would like more to modify the HTTP header of a XMLhttpRequest or you're working with Morph.Web, or you're trying to load a remote QML component ? -
@lduboeuf using webview yes. And youre right the topic isnt specifix enough.
-
@geekvine i'm afraid it is not doable with QML only, you need to do it in c++
But as i rememberAccess-Control-Allow-Origin
is something done server side ? -
@lduboeuf you are correct...there is some basic C++ docs on how to do this so if it's not possible in QML i might have to do that as a workaround.