Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Referer in HTTP request in QML

Referer in HTTP request in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 221 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qtcs
    wrote on last edited by
    #1

    From what I understand, in QML the only way I have to access the network is via the XMLHttpRequest object.

    I also know that for security reasons, JavaScript prohibits setting the Referer header via the setRequestHeader method.

    However, since we are not working inside a browser, I thought that setting the Referer header in QML would work. Turns out it doesn't.

    • Can I make an HTTP request in QML and set the Referer?
    • What are my options if any?
      (native C++ code is out of the question)

    Thank you.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved