Enable Cross-Origin Support for Swagger UI

You may come across network error issues when accessing the REST API by using the cross-origin resource sharing (CORS) on Mozilla Firefox and Internet Explorer. To resolve the issues, you must enable the cross-origin support.

  • Mozilla Firefox: Install and enable the Allow CORS: Access-Control-Allow-Origin plug-in. For information, see the Mozilla FireFox documentation.
  • Internet Explorer: Perform the following steps:
    1. Click Tools > Internet Options.
    2. In the Security tab, click Custom level.
    3. In the Settings > Miscellaneous section, enable the Access data sources across domain option.
    4. Click OK.
    5. Click Apply.
    6. Click OK.
Warning: The administrator REST services do not work if you access them using the CORS (even after enabling the CORS on Mozilla Firefox and Internet Explorer).