Skip to content

Commit 55aeed7

Browse files
committed
add allowed protocols list into the RN side config
1 parent d8048fc commit 55aeed7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ts/Iterable.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ class IterableConfig {
9797
*/
9898
expiringAuthTokenRefreshPeriod: number = 60.0
9999

100+
/**
101+
* We allow navigation only to urls with `https` protocol (for deep links within your app or external links).
102+
* If you want to allow other protocols, such as, `http`, `tel` etc., please add them to the list below
103+
*/
104+
allowedProtocols: Array<string> = []
105+
100106
toDict(): any {
101107
return {
102108
"pushIntegrationName": this.pushIntegrationName,
@@ -107,7 +113,8 @@ class IterableConfig {
107113
"inAppHandlerPresent": this.inAppHandler != undefined,
108114
"authHandlerPresent": this.authHandler != undefined,
109115
"logLevel": this.logLevel,
110-
"expiringAuthTokenRefreshPeriod": this.expiringAuthTokenRefreshPeriod
116+
"expiringAuthTokenRefreshPeriod": this.expiringAuthTokenRefreshPeriod,
117+
"allowedProtocols": this.allowedProtocols
111118
}
112119
}
113120
}

0 commit comments

Comments
 (0)