[CONTROLLER-537] Cross domian issue with Restconf API explorer (/apidoc/apis/) - need to add CORS header to server Created: 05/Jun/14 Updated: 25/Jul/23 Resolved: 11/Jul/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Juraj Sebin | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| External issue ID: | 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 |
| Comments |
| Comment by Tomas Olvecky [ 10/Jul/14 ] |
|
Please look at If you need to expose this header, add it to cors.exposed.headers |
| Comment by Juraj Sebin [ 10/Jul/14 ] |
|
attaching updated cors-config.xml with headers for apidoc/ path |
| Comment by Juraj Sebin [ 10/Jul/14 ] |
|
Attachment cors-config.xml has been added with description: updated cors-config.xml for apidoc/ path |
| Comment by Tomas Olvecky [ 10/Jul/14 ] |