Step 1: Specify a Host Domain to Embedded Amazon AppStream 2.0 Streaming Sessions
To embed an AppStream 2.0 streaming session in a webpage, first update your stack to specify
the domain to host the embedded streaming session. This a security measure to ensure
that only authorized website domains can embed AppStream 2.0 streaming sessions. AppStream 2.0 adds
the domain or domains that you specify to the Content-Security-Policy
(CSP) header. For
more information, see Content Security Policy (CSP)
To update your stack to specify the domain to host the embedded streaming session, use any of the following methods:
-
The AppStream 2.0 console
The
EmbedHostDomains
API actionThe
embed-host-domains
AWS command line interface (AWS CLI) command
To specify a host domain by using the AppStream 2.0 console, perform the following steps.
Open the AppStream 2.0 console at https://console.aws.amazon.com/appstream2
. In the left navigation pane, choose Stacks, and select the stack that you want.
Choose Edit.
Expand Embed AppStream 2.0 (Optional).
In Host Domains, specify a valid domain. For example:
training.example.com
.Note
Embedded streaming sessions are only supported over HTTPS [TCP port 443].
Choose Update.