CORS

Contains the cross-origin resource sharing mechanism settings.

This element is optional.

Path

ServerSettings > CORS

Attributes

This element has no attributes.

Nested elements

This element is a container for the following nested elements:

Kaspersky Scan Engine in HTTP mode may receive an HTTP request with the Origin header field which contains the IP address or host name that initiates the request. If the HTTP mode configuration file contains one or more AccessControlAllowOrigin elements, the value of the Origin header field is mapped to the values defined in these elements. The following results are possible:

If the request does not contain the Origin header field, the kavhttpd service processes it in the standard way.

Example

The following is an example of this element.

<CORS>

<AccessControlAllowOrigin>http://example.com</AccessControlAllowOrigin>

<AccessControlAllowOrigin>https://kaspersky.com</AccessControlAllowOrigin>

</CORS>

Page top