Skip to content

fix(ios): tighten App Store 2.5.2 compliance for WebView and ATS#74

Merged
Suyunmeng merged 2 commits intomainfrom
fix/ios/compliance
Apr 16, 2026
Merged

fix(ios): tighten App Store 2.5.2 compliance for WebView and ATS#74
Suyunmeng merged 2 commits intomainfrom
fix/ios/compliance

Conversation

@Suyunmeng
Copy link
Copy Markdown
Contributor

@Suyunmeng Suyunmeng commented Apr 15, 2026

主要改动

  • 收紧 ATS 策略:移除全局任意网络放行,仅保留 localhost 与 127.0.0.1 的本地访问例外。
  • 收紧 iOS WebView 导航白名单:
    • 仅允许本地环回地址和安全内置 scheme 在应用内加载。
    • 非白名单链接改为系统外部打开,避免在应用内承载远程可变内容。
    • 阻止 iOS 下 javascript scheme 的应用内导航。
    • 在 iOS 启用 App-Bound 导航限制。
  • 同步更新 iOS 配置文档,确保实现与文档一致,降低后续回归风险。

合规收益

  • 降低应用内加载远程可变功能内容的风险。
  • 避免 ATS 全局放开带来的审核疑虑。
  • 更贴合Apple对应用自包含与执行边界的要求。

影响评估

  • 本地服务页面加载能力保持不变。
  • 外链能力保持不变,仅调整为系统处理以提升合规性。
  • 未引入与本次改动相关的新错误。

@Suyunmeng Suyunmeng merged commit 48aab08 into main Apr 16, 2026
3 checks passed
@Suyunmeng Suyunmeng deleted the fix/ios/compliance branch April 16, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant