Browse Source

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.
George Montana Harkin 5 years ago
parent
commit
36ffbe0700
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      docs/Reference.md

+ 1
- 1
docs/Reference.md View File

90
 _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_
90
 _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_
91
 
91
 
92
 - `html` (string) - A static HTML page to display in the WebView.
92
 - `html` (string) - A static HTML page to display in the WebView.
93
-- `baseUrl` (string) - The base URL to be used for any relative links in the HTML.
93
+- `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)
94
 
94
 
95
 | Type   | Required |
95
 | Type   | Required |
96
 | ------ | -------- |
96
 | ------ | -------- |