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

posta 4 mesi fa184 visualizzazioni
2 Risposte
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
ESPERTO
con risposta 4 mesi fa
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
con risposta 4 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande