Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f047633

Browse files
authored
Turn off insecure socket policy configuration in the engine (#25299)
1 parent 44036ca commit f047633

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

shell/platform/android/io/flutter/embedding/engine/loader/FlutterLoader.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,6 @@ public void ensureInitializationComplete(
237237
}
238238

239239
shellArgs.add("--cache-dir-path=" + result.engineCachesPath);
240-
if (!flutterApplicationInfo.clearTextPermitted) {
241-
shellArgs.add("--disallow-insecure-connections");
242-
}
243240
if (flutterApplicationInfo.domainNetworkPolicy != null) {
244241
shellArgs.add("--domain-network-policy=" + flutterApplicationInfo.domainNetworkPolicy);
245242
}

shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,10 @@
134134
}
135135

136136
// Domain network configuration
137-
NSDictionary* appTransportSecurity =
138-
[mainBundle objectForInfoDictionaryKey:@"NSAppTransportSecurity"];
139-
settings.may_insecurely_connect_to_all_domains =
140-
[FlutterDartProject allowsArbitraryLoads:appTransportSecurity];
141-
settings.domain_network_policy =
142-
[FlutterDartProject domainNetworkPolicy:appTransportSecurity].UTF8String;
137+
// Disabled in https://github.com/flutter/flutter/issues/72723.
138+
// Re-enable in https://github.com/flutter/flutter/issues/54448.
139+
settings.may_insecurely_connect_to_all_domains = true;
140+
settings.domain_network_policy = "";
143141

144142
// SkParagraph text layout library
145143
NSNumber* enableSkParagraph = [mainBundle objectForInfoDictionaryKey:@"FLTEnableSkParagraph"];

0 commit comments

Comments
 (0)