origins
Field | Type | Required |
---|---|---|
origins | string array | Yes |
This field is for spacelets only!
A list of hostnames a spacelet can be started from and/or can be connected to from. Starting spacelets or connections to them are controlled by Spaceify's Same Origin Policy (SOP). The policy uses the hostnames listed here to decide can a web page start a spacelet or can a web page, spacelet or application connect to a spacelet. Read more about the Same Origin Policy from section Security Model.
Use * as a wildcard in the hostnames (notice that *. is not equivalent to *).
Example | Description |
---|---|
[ "*" ] | SOP accepts all hostnames. |
[ "www.example.com" ] | SOP accepts only hostname www.example.com. |
[ "*example.com" ] | SOP accepts all hostnames ending with example.com. |
[ "*example.*" ] | SOP accepts all hostnames starting with any character and example. and ending with any top-level domain. |
[ "*.*.example.com" ] | SOP accepts all hostnames from any lower level domains of example.com. |
[ "www.example.com", "spaceify.example.com" ] | SOP accepts hostnames www.example.com and spaceify.example.com. |