allow-origin

The allow-origin entry specifies which origins presented by clients are permitted to make cross-origin requests to resources which this policy is applicable to.

Description

An origin which is permitted for this policy. This configuration entry may be specified multiple times to indicate multiple allowable origins. A value of '*' can be specified to indicate that requests are allowed from any origin. When configured with an origin or list of origins, this configuration entry adds the following header to pre-flight requests:

When configured with '*', this configuration entry adds the following header to pre-flight requests:

This entry affects both pre-flight and cross-origin requests. This entry is used when validating cross-origin requests.

Options

Usage: Required.

We can specify multiple entries if needed.

The origin matching performed is case sensitive.

If an '*' entry is specified, all other allow-origin entries for this policy is ignored.

Default value: None.

Example:

Parent topic: [cors-policy:policy-name] stanza