Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12440

FileTransfer: iOS returns Forbidden error during upload

    XMLWordPrintableJSON

Details

    Description

      When attempting to upload an image using FileTransfer.upload iOS consistently returns a Forbidden error. The same code works on Android using the same plugin version and same server.

      Prior to cordova-ios@4 and iOS10 the Forbidden error was not encountered.

      Server authentication is via a basic-auth entry in the header. The request never even makes it to the server so appears to be blocked by the client.

      config.xml

          <access origin='*' allows-arbitrary-loads-in-media='true' allows-arbitrary-loads-in-web-content='true' allows-local-networking='true' />
      

      Attachments

        1. ios-plist.png
          75 kB
          Anthony Rumsey
        2. error-msg.png
          74 kB
          Anthony Rumsey

        Activity

          People

            Unassigned Unassigned
            arumsey Anthony Rumsey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: