Cors element

Previous Next

In a config.xml server configuration file, the <Cors> element contains configuration properties for CORS configurations. This element has <CorsConfig> and <Rule> child elements.

 

Example

<Cors>
   <CorsConfig name="Default">
      <Rule Access-Control-Allow-Origin="*" Access-Control-Allow-Methods="GET, POST, PUT, DELETE" Access-Control-Allow-Headers="Content-Type,Authorization,Accept,X-US-Transaction" Access-Control-Allow-Credentials="true"/>
   </CorsConfig>
</Cors>

 

 

collapseCors element
collapseCorsConfig element
collapseRule

 

See also

CORS configurations

Server configuration