---
title: baseURL
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebextensioncontext/baseurl
---

# baseURL

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

## Declaration

```swift
var baseURL: URL { get set }
```

## Discussion

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.
