CORS - Rest API allow specific hosts

What is the way to configure CORS and allow specific hosts.
The only thing I did see in the forum is this line:

<cors configuration-source-ref="cuba_RestCorsSource"/>

which is not documented.



To restrict the origins list you can define the application property.

It defines a comma-separated list of origins that can access the REST API.