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

Http [post] is getting [option] on rails.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • cordova@7.0.0
    • None
    • cordova-cli, cordova-ios
    • None
    • Server APi - ruby '2.1.6'
      gem 'rails', '4.1.1'

      iOS - cordova - 7.0.1

    Description

      Hi,

      I have app running on following versions-
      node: node 4.3.0
      phonegap: phonegap 5.3.1
      Platform:
      Cordova 3.4.0
      cordova-android 3.6.3, cordova-ios 3.9.1
      Framework: Backbone 1.1.2
      Tests: Phantom/Jasmine 1.2.0

      But when i updated with the latest versions-
      node- v8.4.0
      cordova- 7.0.1
      android 6.2.3
      ios 4.4.0

      Content-type- application/json

      When calling post api from the app, its processing as [option] not post and getting error - XMLHttpRequest cannot load. Preflight response is not successful.

      using -
      cordova-plugin-whitelist 1.3.2 "Whitelist"

      And in config.xml-
      <allow-navigation href="*" />
      <allow-intent href="*"/>
      <access origin="*" />
      is also added.

      Meta tag in index-
      <meta http-equiv="Content-Security-Policy" content="default-src * gap: file:; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src * 'unsafe-inline' 'unsafe-eval' ws: wss:;">

      what i am missing, can you suggest?

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            kumararun540 Arun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: