Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 1 file). Show all
Unified · Split
| @@ -17,6 +17,7 @@ · 16 unmodified lines | ||
| 17 | 17 | |
| 18 | 18 | #include <NetworkAccessManager.h> |
| 19 | 19 | |
| 20 | +#include <AccountManager.h> | |
| 20 | 21 | #include "XMLHttpRequestClass.h" |
| 21 | 22 | #include "ScriptEngine.h" |
| 22 | 23 | |
| @@ -201,6 +202,9 @@ void XMLHttpRequestClass::open(const QString& method, const QString& url, bool a · 178 unmodified lines | ||
| 201 | 202 | notImplemented(); |
| 202 | 203 | } |
| 203 | 204 | } else { |
| 205 | + if (url.toLower().left(33) == "https://data.highfidelity.io/api/") { | |
| 206 | + _url.setQuery("access_token=" + AccountManager::getInstance().getAccountInfo().getAccessToken().token); | |
| 207 | + } | |
| 204 | 208 | if (!username.isEmpty()) { |
| 205 | 209 | _url.setUserName(username); |
| 206 | 210 | } |