[Development] QTBUG-35892. QML XMLHttpRequest does not support the OPTIONS method.

Jeremy Lainé jeremy.laine at m4x.org
Sat Sep 6 19:03:07 CEST 2014


On 09/06/2014 01:19 PM, Валерий Котов wrote:
>
> There is one more thing. Should we care about cross-origin resource
> sharing protocol? If I got it right, XMLHttpeRequset should perform
> "OPTIONS" preflight request before real cors request. Please see links
> below for more details:
> http://www.w3.org/TR/cors/#cross-origin-request-with-preflight-0
> Does it make sense to have separate method for "OPTIONS" request in
> QNetworkAccessManager if it is the case (like for get or post)?
>

>From the docs:

  * QML's XMLHttpRequest
    <http://qt-project.org/doc/qt-5/qtqml-javascript-qmlglobalobject.html#xmlhttprequest> does
    not enforce the same origin policy.

=> you don't care about cross origin requests, much less preflighting.

Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140906/1033793a/attachment.html>


More information about the Development mailing list