https://dagster.io/ logo
#announcements
Title
# announcements
m

Manas Jain

08/18/2020, 3:57 AM
Hi, please let me know if we can integrate dagit with our angular based application
a

alex

08/18/2020, 3:17 PM
the dagit webserver is a GraphQL server so you can query it directly to display things If you want to integrate the front-end I think all you can really do is put it in an iframe or something
m

Manas Jain

08/18/2020, 3:18 PM
@alex is there a documentation to which I can refer
a

alex

08/18/2020, 3:19 PM
not really unfortunately, you can hit the
/graphql
endpoint where ever you are hosting dagit to get a GraphQL playground which exposes the schema
otherwise you can look at
dagit
and
dagster-graphql
on github to see the existing queries we use
m

Manas Jain

08/18/2020, 3:21 PM
thanks @alex!
s

sashank

08/21/2020, 12:58 AM
Hey @Manas Jain, we just uploaded some documentation for our graphql API: https://docs.dagster.io/overview/graphql-api#using-the-graphql-playground
👍 1
a

Anoop Sharma

07/12/2022, 12:44 PM
@alex I am trying to embed the dagit ui has an iframe in my react app but am getting the frame-ancestors error as follows:
Copy code
Refused to frame '<http://localhost:3001/>' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
I have tried hosting the react app from the production build as well but still facing the same issue. Any ideas on how I can get this done?
I also followed this PR which implements following:
Copy code
{'frame-ancestors': `'none'`}
Does this the dagit ui is not allowed to be embedded as an iframe?
a

alex

07/12/2022, 2:14 PM
can you file an issue with more details about what you tried
a

Anoop Sharma

07/12/2022, 3:14 PM
Looks like the issue occurs only when I deploy dagster inside a docker container and then try to embed it in my app. When I simply run dagster in my local (i.e. without docker), it works perfectly fine. Let me explore this a bit further and if it still doesn't work, will file an issue.
Okay. I think I found a way to reproduce the issue. It's the difference in dagster versions. The Embedding works fine with the version 0.14.13 but doesn't work on the version 0.14.20 or even the latest version 0.15.5.
a

alex

07/12/2022, 4:00 PM
sounds likely caused by recent security improvements that need to be relaxed or have an opt out
a

Anoop Sharma

07/12/2022, 4:04 PM
Can you please guide on how i can relax or opt-out of the security setting? Or is there any other way around this?
I think I found a way around it for now by updating the iframe options for
webserver.py
and
csp-header.conf
for dagit. Its working now. But currently I did this manually which is clearly not a good way. Is there a way to update the settings from a config file or something?
a

alex

07/12/2022, 4:27 PM
cc @dish
d

dish

07/12/2022, 5:14 PM
Yeah, we can probably roll that back for OS
a

Anoop Sharma

07/13/2022, 5:44 PM
@dish I saw that the PR was approved and merged into
master
. So will this change will be available as part of the next release i.e. 0.15.6 ?
d

dish

07/13/2022, 5:53 PM
Yep, it will be in the next release
👍 1