webserver origin set

Set allowed origin domains for the REST API webserver.

NOTE   This feature requires minimum appliance software version 7.4. See Version Dependencies by Feature for more information.

User Privileges

Users with the following privileges can perform this command:

>Admin

Syntax

webserver origin set

Argument(s) Shortcut Description
-force -f Force the action without prompting.
-list <origin_list> -l Specify the list of allowed origin domains, separated by commas. You can specify domains, IP addresses, or IP/port combinations.
-restart -r Restart the webserver service after setting the allowed origin domains. If you do not include this option, you must restart the webserver manually before the origin changes take effect (lunash:>service restart webserver [see service restart]).

Example

lunash:>webserver origin set -list "luna.com,gemalto.com,safenet.com,192.168.0.1:8081"

WARNING: This operation will modify REST API Server allowed origin domains.

Type 'proceed' to continue, or 'quit' to quit now.

> proceed
Proceeding...

New REST API Service Allowed Origin Domains:
"luna.com","gemalto.com","safenet.com","192.168.0.1:8081"
You chose not to restart REST API Service now.
The new allowed origin domains will be effective when REST API Service is restarted.
To restart it run: service restart webserver

Command Result : 0 (Success)