Skip to content

Commit cac1e86

Browse files
ndbroadbentmatthargett
authored andcommitted
HTML files must have the ms-appx-web:// schema to be used in a WebView (microsoft#1123)
1 parent 5f94f29 commit cac1e86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ReactWindows/ReactNative/Views/Web/ReactWebViewManager.cs

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ public void SetSource(WebView view, JObject source)
110110
var uri = source.Value<string>("uri");
111111
if (uri != null)
112112
{
113+
// HTML files need to be loaded with the ms-appx-web schema.
114+
uri = uri.Replace("ms-appx:", "ms-appx-web:");
115+
113116
using (var request = new HttpRequestMessage())
114117
{
115118
request.RequestUri = new Uri(uri);

0 commit comments

Comments
 (0)