From 36ffbe0700456c4e8370487dab698557200bf3ed Mon Sep 17 00:00:00 2001 From: George Montana Harkin Date: Thu, 19 Sep 2019 02:18:59 -0700 Subject: [PATCH] chore(docs): Update "source" doc, baseUrl comments about CORS (#881) After needing to see what the origin of a "html" source'd WebView would be, I found the documentation that baseUrl would be utilized for the "origin" header when CORS requests are made. --- docs/Reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Reference.md b/docs/Reference.md index 5d801e3..d98ece8 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -90,7 +90,7 @@ The object passed to `source` can have either of the following shapes: _Note that using static HTML requires the WebView property [originWhiteList](Reference.md#originWhiteList) to `['*']`. For some content, such as video embeds (e.g. Twitter or Facebook posts with video), the baseUrl needs to be set for the video playback to work_ - `html` (string) - A static HTML page to display in the WebView. -- `baseUrl` (string) - The base URL to be used for any relative links in the HTML. +- `baseUrl` (string) - The base URL to be used for any relative links in the HTML. This is also used for the origin header with CORS requests made from the WebView. See [Android WebView Docs](https://developer.android.com/reference/android/webkit/WebView#loadDataWithBaseURL) | Type | Required | | ------ | -------- |