Skip to content

Commit 347763c

Browse files
mzndakosergii-bo
authored andcommitted
feat: add downloadOriginWhitelist types
1 parent 69e9502 commit 347763c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/WebViewTypes.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,11 +788,17 @@ export interface WebViewSharedProps extends ViewProps {
788788
*/
789789
javaScriptEnabled?: boolean;
790790

791+
/**
792+
* List of origin strings that are allowed to send download data through postMessage.
793+
* The strings allow wildcards and get matched against *just* the origin (not the full URL).
794+
* If a download request comes from an origin not in this whitelist, it will be ignored.
795+
* The default whitelisted origins are empty array [].
796+
*/
797+
readonly downloadOriginWhitelist?: string[];
791798

792799
/**
793800
* Defines a list of domain origins that can access camera.
794801
*/
795-
796802
readonly cameraPermissionOriginWhitelist?: string[];
797803

798804
/**

0 commit comments

Comments
 (0)