Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4294

Use native HTTP requests

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.2.0
    • None
    • Web Services
    • MOODLE_402_STABLE
    • Moodle App 4.3.0

    Description

      For historical reasons, some endpoints are not configured properly and throw a CORS error when requested through a browser (or a WebView, in native apps). Because of that, we are making native HTTP requests for certain situations where this happens.

      One of the times when we're still using browser requests is the login, which should work for the most part. But we've seen sites misconfigured that throw CORS errors in any endpoint, and that's a common source of issues.

      In order to minimize it, and given that we're already doing native requests in some situations, it'd be easier to just use native requests everywhere. We may still find the issues in iframes and such, but it won't be as disruptive as preventing logging in.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              noeldemartin Noel De Martin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: