Skip to main content

Enable StorageGRID CORS for a management interface

Contributors netapp-pcarriga netapp-lhalbert

As a grid administrator, you can enable cross-origin resource sharing (CORS) for management API requests to StorageGRID, if you want data in StorageGRID to be accessible using management APIs to another domain.

Before you begin
About this task

CORS is a security mechanism that allows client web applications in one domain to access resources in a different domain. For example, suppose you want to build a monitoring dashboard for StorageGRID in domain http://www.example.com. By enabling CORS in StorageGRID for http://www.example.com and "Grid Manager", the StorageGRID domain responds to Grid Management API requests from http://www.example.com.

Management API (mgmt-api) requests with application/json or multipart/formdata requests for Content-Type are supported for CORS.

Steps
  1. In Grid Manager, go to CONFIGURATION > Network > Management interface CORS settings.

  2. Select Grid Manager, Tenant Manager, or both options.

    • Grid Manager: Enables CORS for cross-domain Grid Management API requests.

    • Tenant Manager: Enables CORS for cross-domain Tenant Management API requests.

  3. Enter the URL for the other domain in the Domains field.

    Select Add another domain if you want to enable CORS in StorageGRID for more than one domain.

  4. Select Save.