HCP Tenant Management Help


CORS configuration template

Here is a sample XML template for setting a CORS rules configuration.

CORS rules configuration template

<CORSConfiguration>
     <CORSRule>
          <Id>Unique string value that identifies the rule</Id>     <!-- optional -->
          <AllowedOrigin>Origin that you want to allow cross-origin requests from</AllowedOrigin>
          <AllowedOrigin>A single wildcard is allowed</AllowedOrigin>
          <AllowedMethod>HTTP method</AllowedMethod>
          <AllowedMethod>HTTP method</AllowedMethod>
          <MaxAgeSeconds>Time, in seconds, the browser can cache the preflight OPTIONS response for a resource</MaxAgeSeconds>     <!-- optional -->
          <AllowedHeader>Header that you want the browser to send. A single wildcard is allowed.</AllowedHeader>     <!-- optional -->
          <AllowedHeader>...</AllowedHeader>     <!-- optional -->
          <ExposeHeader>Response header that you want accessible from the browser </ExposeHeader>     <!-- optional -->
          <ExposeHeader>...</ExposeHeader>     <!-- optional -->
     </CORSRule>
     <CORSRule>
          ...
     </CORSRule>
     <CORSRule>
          ...
     </CORSRule>
</CORSConfiguration>

© 2015, 2019 Hitachi Vantara Corporation. All rights reserved.