• John Z Wu's avatar
    Fix CSP translate issues once and for all. · 31d0dd65
    John Z Wu authored
    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: default avatarDavid Roger <droger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#604786}
    31d0dd65
translate_controller.h 5.23 KB