アプリ転送セキュリティ
App Transport Security(ATS)は、安全な接続を強制するプライバシー機能です。新しいアプリではデフォルトで有効になっています。
ATS に準拠していないアプリが HTTP を使用して広告を配信しようとすると、次のログメッセージが表示されます。
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure.(平文の HTTP(http://)リソースは安全でないため、App Transport Security によって読み込みがブロックされました。)一時的な例外は、アプリの Info.plist
ファイルで設定できます。
ATS による制限を無効にするには、アプリの Info.plist
に次の例外を追加します。
NSAllowsArbitraryLoadsForMedia
NSAllowsArbitraryLoadsInWebContent
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsForMedia</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
広告が ATS の影響を受けないようにするには、NSAllowsArbitraryLoadsForMedia
キーと NSAllowsArbitraryLoadsInWebContent
キーが必要です。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-02-08 UTC。
[null,null,["最終更新日 2025-02-08 UTC。"],[[["App Transport Security (ATS) enforces secure connections and is enabled by default for new apps, blocking cleartext HTTP resource loads for enhanced security."],["To avoid ATS restrictions and ensure ad serving functionality, developers need to include `NSAllowsArbitraryLoadsForMedia` and `NSAllowsArbitraryLoadsInWebContent` exceptions within their app's `Info.plist` file."],["These exceptions allow media and web content to bypass ATS restrictions, preventing disruption to ad delivery."]]],["App Transport Security (ATS) enforces secure connections and is enabled by default. Non-compliant apps using HTTP trigger a log message indicating blocked insecure resource loads. To disable ATS restrictions for media and web content, add `NSAllowsArbitraryLoadsForMedia` and `NSAllowsArbitraryLoadsInWebContent` keys set to `true` within the app's `Info.plist` file, under the `NSAppTransportSecurity` dictionary. These exceptions are essential to prevent ads from being affected by ATS.\n"]]