Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-537

Cross domian issue with Restconf API explorer (/apidoc/apis/) - need to add CORS header to server

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • restconf
    • None
    • Operating System: All
      Platform: PC

    • 1139

    Description

      There is Cross-domain issue when querying Restconf API explorer (https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Restconf_API_Explorer wiki, https://git.opendaylight.org/gerrit/#/c/6574/ gerrit) from javascript.

      No 'Access-Control-Allow-Origin' header is present on the requested resource.

      From what it seems CORS headers need to be set on server. We would like to have access to apidoc/apis/ API from javascript to dynamically discover APIs for each module, but we can't continue until this issue is fixed.

      p.s.: when calling /restconf/modules/ there is no such issue

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              jsebin@cisco.com Juraj Sebin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: