Embed the Amazon DCV web browser client inside an iFrame
By default, to protect against clickjacking attacks, Amazon DCV doesn't allow the web browser client to be embedded inside an iFrame. However, you can override this default behavior to allow the web browser client to run inside an iFrame.
For more information, about preventing clickjacking attacks, see the Content Security Policy Cheat Sheet
To allow the web browser to run inside an iFrame, you must configure the Amazon DCV server to send the following additional HTTP response headers to the web browser client:
-
web-x-frame-options
-
web-extra-http-headers
We recommend that you add both headers to ensure the best compatibility across web browsers.
Note
If connecting through a Amazon DCV Connection Gateway, the x-frame options need to be defined within the gateway configuration. This is done by using the local-resources-http-headers
parameter within the
[web-resources]
section of the gateway configuration.
By default, most browsers prevent access to some features, such as microphone access and fullscreen access. To allow access to these features, modify the iFrame element on the webpage. For example, to allow access to the microphone and to fullscreen mode, modify the iFrame element as follows:
<iframe src="..." allow="microphone; fullscreen">/iframe>