Skip to content

Commit 3349b2b

Browse files
authored
fix: 修复macOS打包应用HTTP请求被ATS阻止的问题 (#491)
- 添加NSAppTransportSecurity配置到Info.plist - 设置NSAllowsArbitraryLoads允许HTTP请求
1 parent 607eaa0 commit 3349b2b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src-tauri/Info.plist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSAppTransportSecurity</key>
6+
<dict>
7+
<key>NSAllowsArbitraryLoads</key>
8+
<true/>
9+
</dict>
10+
</dict>
11+
</plist>

0 commit comments

Comments
 (0)