Browse Source

Avoid modifing request headers

adaptive-webui-19844
Chocobo1 8 years ago committed by sledgehammer999
parent
commit
55e038b165
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 2
      src/webui/abstractwebapplication.cpp

2
src/webui/abstractwebapplication.cpp

@ -387,7 +387,7 @@ bool AbstractWebApplication::isCrossSiteRequest(const Http::Request &request) co
&& (left.host() == right.host())); && (left.host() == right.host()));
}; };
const QString targetOrigin = request.headers.value(Http::HEADER_X_FORWARDED_HOST, request.headers[Http::HEADER_HOST]); const QString targetOrigin = request.headers.value(Http::HEADER_X_FORWARDED_HOST, request.headers.value(Http::HEADER_HOST));
const QString originValue = request.headers.value(Http::HEADER_ORIGIN); const QString originValue = request.headers.value(Http::HEADER_ORIGIN);
const QString refererValue = request.headers.value(Http::HEADER_REFERER); const QString refererValue = request.headers.value(Http::HEADER_REFERER);

Loading…
Cancel
Save