How to embed DCV window while using DCV Connection Gateway

0

We want to embed the DCV window in an iframe: https://docs.aws.amazon.com/dcv/latest/adminguide/embed-in-iframe.html

I followed the instructions and modified the /etc/dcv/dcv.conf on the linux gateway machine as specified.
Restarted dcv and dcv-connection-gateway services.
I also modified the DCV server registry on the windows machine (DCV Server) and restarted the dcvserver service.
Neither of these worked.

I am wondering if the gateway ignores those?
Can this be set for DCV Connection Gateway?
If so, where should it be set

已提问 4 个月前185 查看次数
2 回答
0

The link you shared is for server only and not gateway.

I have never done this before but it reads that these settings are for the servers you’re accessing only.

You then embed the servers your wanting to connect to using the iframe method into your own page.

Can you confirm you have set the server_host name value correctly? I think this would need setting to the site of the page where the iframe has been embedded as it’s going to be CORS related.

profile picture
专家
已回答 4 个月前
0

The gateway will supersedes any of the header settings you applied to DCV server since the client connects to the gateway first. For a session to render in an iframe and stream through the gateway, you will need to add the following line under [web-resources] in the dcv-connection-gateway.conf.

local-resources-http-headers={"Content-Security-Policy"="frame-ancestors *.DOMAIN.com"}

Note that this is not currently documented. I will update the parameter and iframe documentation respectively.

profile pictureAWS
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则