cors-allowed-origins

Specify the domain origins from which clients are allowed to make requests to the server

Syntax

--cors-allowed-origins [ LIST | * ]

Description

cors-allowed-origins specifies the set of domains origins from which clients are allowed to make requests to a MATLAB® Production Server™ instance. Cross-Origin Resource Sharing or CORS defines a way in which client-side web applications and a server can interact to safely determine whether or not to allow a cross-origin request. Most clients such as browsers use the XMLHttpRequest object to make a cross-domain request. This is especially true for client code written using JavaScript®. For MATLAB Production Server to support such requests cors-allowed-origins must be enabled on the server.

Parameters

*

Requests from any domain origin are allowed access to the sever.

LIST

Requests from a list of comma-separated domain origins are allowed access to the server.

Examples

Requests from any domain origin are allowed access to the sever.

--cors-allowed-origins *

Requests from a specific list of domain origins are allowed access to the server.

--cors-allowed-origins http://www.w3.org, https://www.apache.org

See Also