ความปลอดภัยของการส่งแอป
App Transport Security (ATS) เป็นฟีเจอร์ด้านความเป็นส่วนตัวที่บังคับใช้การเชื่อมต่อที่ปลอดภัย ฟีเจอร์นี้จะเปิดใช้โดยค่าเริ่มต้นสำหรับแอปใหม่
ข้อความบันทึกต่อไปนี้จะปรากฏขึ้นเมื่อแอปที่ไม่เป็นไปตามข้อกําหนดของ ATS พยายามแสดงโฆษณาโดยใช้ HTTP
App Transport Security ได้บล็อกการโหลดทรัพยากร HTTP (http://) แบบข้อความที่อ่านได้ เนื่องจากไม่ปลอดภัย คุณกำหนดค่าข้อยกเว้นชั่วคราวได้ในไฟล์ Info.plist
ของแอป
หากต้องการปิดใช้ข้อจำกัดของ ATS ให้เพิ่มข้อยกเว้นต่อไปนี้ลงในInfo.plist
ของแอป
NSAllowsArbitraryLoadsForMedia
NSAllowsArbitraryLoadsInWebContent
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsForMedia</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
คุณต้องใช้คีย์ NSAllowsArbitraryLoadsForMedia
และ NSAllowsArbitraryLoadsInWebContent
เพื่อให้มั่นใจว่าโฆษณาจะไม่ได้รับผลกระทบจาก ATS
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]