Qt World Summit: Register Today!


Webengine Cookie SameSite=None warning



  • Earlier this post was categorized under QML & Qt Quick. I brought it here

    I keep receiving the following warning on QtWebEngine calls in QML. How do I resolve this?

    js: A cookie associated with a resource at <URL> was set with `SameSite=None` but without `Secure`. 
    

    I read somewhere that a cookie header (HttpOnly;Secure;SameSite=Strict) needs to be set. How do I do it in WebEngineView?

    Here is my QML snippet

    WebEngineView {
        id:primaryVideo
    
        URL:"http://www.youtube.com/embed/9ldOuVuas1c"
        width:500
        height:250
    }
    

Log in to reply