react-native-windows 0.69.9 → 0.69.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.69.
|
|
13
|
+
<ReactNativeWindowsVersion>0.69.10</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>69</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>10</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
18
|
</PropertyGroup>
|
|
19
19
|
</Project>
|
|
@@ -640,8 +640,6 @@ void OriginPolicyHttpFilter::ValidateResponse(HttpResponseMessage const &respons
|
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
ResponseOperation OriginPolicyHttpFilter::SendPreflightAsync(HttpRequestMessage const &request) const {
|
|
643
|
-
// TODO: Inject user agent?
|
|
644
|
-
|
|
645
643
|
auto coRequest = request;
|
|
646
644
|
|
|
647
645
|
HttpRequestMessage preflightRequest;
|
|
@@ -756,6 +754,11 @@ ResponseOperation OriginPolicyHttpFilter::SendRequestAsync(HttpRequestMessage co
|
|
|
756
754
|
ValidatePreflightResponse(coRequest, preflightResponse);
|
|
757
755
|
}
|
|
758
756
|
|
|
757
|
+
if (originPolicy == OriginPolicy::SimpleCrossOriginResourceSharing ||
|
|
758
|
+
originPolicy == OriginPolicy::CrossOriginResourceSharing) {
|
|
759
|
+
coRequest.Headers().Insert(L"Origin", s_origin.AbsoluteCanonicalUri());
|
|
760
|
+
}
|
|
761
|
+
|
|
759
762
|
auto response = co_await m_innerFilter.SendRequestAsync(coRequest);
|
|
760
763
|
|
|
761
764
|
ValidateResponse(response, originPolicy);
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
#include "RedirectHttpFilter.h"
|
|
7
7
|
|
|
8
|
+
// React Native Windows
|
|
9
|
+
#include <CppRuntimeOptions.h>
|
|
8
10
|
#include "WinRTTypes.h"
|
|
9
11
|
|
|
10
12
|
// Windows API
|
|
@@ -211,6 +213,13 @@ ResponseOperation RedirectHttpFilter::SendRequestAsync(HttpRequestMessage const
|
|
|
211
213
|
method = coRequest.Method();
|
|
212
214
|
|
|
213
215
|
do {
|
|
216
|
+
// Set User-Agent
|
|
217
|
+
// See https://fetch.spec.whatwg.org/#http-network-or-cache-fetch
|
|
218
|
+
auto userAgent = GetRuntimeOptionString("Http.UserAgent");
|
|
219
|
+
if (userAgent.size() > 0) {
|
|
220
|
+
coRequest.Headers().Append(L"User-Agent", winrt::to_hstring(userAgent));
|
|
221
|
+
}
|
|
222
|
+
|
|
214
223
|
// Send subsequent requests through the filter that doesn't have the credentials included in the first request
|
|
215
224
|
response =
|
|
216
225
|
co_await (redirectCount > 0 ? m_innerFilterWithNoCredentials : m_innerFilter).SendRequestAsync(coRequest);
|
|
@@ -155,6 +155,9 @@
|
|
|
155
155
|
<ClCompile Include="$(MSBuildThisFileDirectory)Networking\RedirectHttpFilter.cpp">
|
|
156
156
|
<Filter>Source Files\Networking</Filter>
|
|
157
157
|
</ClCompile>
|
|
158
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)Modules\BlobModule.cpp">
|
|
159
|
+
<Filter>Source Files\Modules</Filter>
|
|
160
|
+
</ClCompile>
|
|
158
161
|
</ItemGroup>
|
|
159
162
|
<ItemGroup>
|
|
160
163
|
<Filter Include="Source Files">
|
|
@@ -469,6 +472,15 @@
|
|
|
469
472
|
<ClInclude Include="$(MSBuildThisFileDirectory)Networking\IRedirectEventSource.h">
|
|
470
473
|
<Filter>Header Files\Networking</Filter>
|
|
471
474
|
</ClInclude>
|
|
475
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Modules\BlobModule.h">
|
|
476
|
+
<Filter>Header Files\Modules</Filter>
|
|
477
|
+
</ClInclude>
|
|
478
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Modules\IWebSocketModuleProxy.h">
|
|
479
|
+
<Filter>Header Files\Modules</Filter>
|
|
480
|
+
</ClInclude>
|
|
481
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Modules\IWebSocketModuleContentHandler.h">
|
|
482
|
+
<Filter>Header Files\Modules</Filter>
|
|
483
|
+
</ClInclude>
|
|
472
484
|
</ItemGroup>
|
|
473
485
|
<ItemGroup>
|
|
474
486
|
<None Include="$(MSBuildThisFileDirectory)tracing\rnw.wprp">
|