cors data type

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

The cors data type describes the cors resource for tenants and namespaces.

The cors data type is a string in a CDATA section that specifies a CORS rules configuration.

Example

Here is an example of the cors data type.

<cors><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <CORSConfiguration>
          <CORSRule>
               <AllowedOrigin>;:~`!@#$%^()-_+={}[]|\",.?/*</AllowedOrigin>
               <AllowedMethod>PUT</AllowedMethod>
               <AllowedHeader>&gt;someHeader</AllowedHeader>
               <AllowedHeader>;~`!@#$%^()-_+={}[]|\".?/*</AllowedHeader>
          </CORSRule>
     </CORSConfiguration>
]]></cors>