Specify the domain origins from which clients are allowed to make requests to the server
--cors-allowed-origins [ LIST | * ]
cors-allowed-origins specifies the set of domain 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, you must enable
cors-allowed-origins on the server.
*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.
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