Skip to content

Trouble with Cross-Origin Communication in trame-iframe Setup #402

Answered by jourdain
evdkmv asked this question in Q&A
Discussion options

You must be logged in to vote

You need to proxy the network through the same domain/origin, which means you will need to enable WebSocket forwarding (ours handle some rewrite which you should not need if you use trame docker) as we do within our docker bundle along with some proxy path forwarding.

Also since the trame JS is static, you should be able to serve it along with your main application (python -m trame.tools.www). The only 2 other requests are for starting the process as a POST and the WebSocket. This means, you should just need to add 2 proxy rules to your main web server.

HTH

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@callback00
Comment options

@callback00
Comment options

@jourdain
Comment options

Answer selected by evdkmv
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants