Contents

baseURL

The base URL the context uses for loading extension resources or injecting content into webpages.

Declaration

var baseURL: URL { get set }

Discussion

The default value is a unique URL using the webkit-extension scheme. The base URL can be set to any URL, but only the scheme and host will be used. The scheme cannot be a scheme that is already supported by WKWebView (e.g. http, https, etc.). Setting is only allowed when the context is not loaded.