Skip to content

Commit

Permalink
add headers for embedded webview
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Nov 7, 2024
1 parent fd1862a commit a131806
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ fun MeasurementScreen(
val url = "https://explorer.ooni.org/measurement/${reportId.value}$inputSuffix"
LaunchedEffect(url) { Logger.i("URL: $url") }

val webViewState = rememberWebViewState(url)
val webViewState = rememberWebViewState(
url = url,
additionalHttpHeaders = mapOf("Enable-Embedded-View" to "true"),
)
webViewState.webSettings.isJavaScriptEnabled = TestingFlags.webviewJavascriptEnabled
val webViewNavigator = rememberWebViewNavigator(
// Don't allow other links to open
Expand Down

0 comments on commit a131806

Please sign in to comment.