xmlns:cors="http://www.mulesoft.org/schema/mule/cors"
CORS Validate Component Reference
CORS Validate Global Configuration
Global Configuration Syntax
<cors:config name="corsConfig">
<cors:origins>
<cors:origin url="domain-a.com" accessControlMaxAge="30">
<cors:methods>
<cors:method>GET</cors:method>
<cors:method>POST</cors:method>
<cors:method>OPTIONS</cors:method>
</cors:methods>
<cors:headers>
<cors:header>X-Allow-Origin</cors:header>
</cors:headers>
</cors:origin>
</cors:origins>
</cors:config>
Global Configuration Elements
cors:config
Name | Description |
---|---|
name |
Give a name to this configuration so it can be later referenced by config-ref. Data Type: String |
storePrefix |
Prefix used to differentiate the object store used as the backend of the configured origins. Data Type: String |
originsStore-ref |
The object store used for storing the origins. Data Type: String |
CORS Validate Component
Validate Element Syntax
<cors:validate config-ref="corsConfig"
publicResource="false"
acceptsCredentials="false"/>
Validate Elements
validate
Name | Description |
---|---|
config-ref |
Specify which configuration to use for this invocation. Data Type: String |
publicResource |
Specifies if this resource should be publicly available regardless the origin. Data Type: booleanType Default Value: false |
acceptsCredentials |
specifies whether the resource accepts credentials or not. Data Type: booleanType Default Value: false |