Fix CSP translate issues once and for all.
CSP has a directive 'connect-src' that can prevent xhr requests. We proxy these requests to the native iOS app to circumvent CSP. The native apps then takes the response and returns it to the original xhr object. This fixes all remaining CSP issues with translate on iOS. Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs Change-Id: I53e633bffbf6fea4b025651ad1c0efe8f367aaf7 Bug: 686364 Reviewed-on: https://chromium-review.googlesource.com/c/1285513 Commit-Queue: John Wu <jzw@chromium.org> Reviewed-by:David Roger <droger@chromium.org> Cr-Commit-Position: refs/heads/master@{#604786}
Showing
Please register or sign in to comment