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
Forum Updated to NodeBB v4.3 + New Features

Referer in HTTP request in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 174 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 4 Apr 2020, 05:01 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

    1/1

    4 Apr 2020, 05:01

    • Login

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