Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-19113

CORS + Auth Failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: ESP
    • Labels:
      None

      Description

      Attempting to make REST CORS calls to ESP (with auth enabled) fails with:

      Failed to load http://192.168.3.22:8010/WsWorkunits/WUResult.json: Redirect from 'http://192.168.3.22:8010/WsWorkunits/WUResult.json' to 'http://192.168.3.22:8010/esp/files/Login.html' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8080' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

       

      The response code is a "302 Found" I would have expected a 401?

       

        Attachments

          Activity

            People

            • Assignee:
              wangkx Kevin Wang
              Reporter:
              gordonsmith Gordon Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: