https://prefect.io logo
#prefect-community
Title
# prefect-community
x

Xavier Babu

05/09/2022, 2:32 PM
Dear Prefect-community, We use Prefect Orion 2.0 with Cloud Prefect 2.0 UI and while launching beta.prefect.io with a IFrame for our Application we get the following error message: "*beta.prefect.io* refused to connect". Looks like in the Cloud Prefect setup we need to add x-frame-options:SAMEORIGIN. Since I don't have control I don't know how to resolve this issue.
k

Kevin Kho

05/09/2022, 2:33 PM
I’ll have to find someone on the UI team familiar with CORS
x

Xavier Babu

05/09/2022, 2:36 PM
Thank you, Kevin. Let me wait for your response today.
k

Kevin Kho

05/09/2022, 2:37 PM
Are you trying to give a custom domain to Prefect Cloud? What is the use case here?
x

Xavier Babu

05/09/2022, 2:44 PM
We have our own Workflow Automation Application UI and Prefect is part of that. Whenever end-user runs their flow, we show only their flow status in a IFrame Screen within the application, so that they won't access and view any other person's Flows or tasks.
Even though it is only for internal users, we have different team and they need privacy.
Or if I get a stable local Orion UI similar to Cloud one within my local server, that would solve my problem.
Currently, the local Orion UI is not showing log and Flows, everything else works ok. I also switched from SQLite to Postgres to overcome the WAL issue. Still, I can't get the logs in my Orion UI.
k

Kevin Kho

05/09/2022, 2:51 PM
Could you elaborate the Orion 2.0 with Cloud Prefect 2.0 UI? You mean you are using
<http://beta.prefect.io|beta.prefect.io>
right?
x

Xavier Babu

05/09/2022, 2:53 PM
yes
k

Kevin Kho

05/09/2022, 2:59 PM
For the iframe to work, you just have to be authenticated because it’s just a mini browser so there is no additional security. You will have the same permissions as a normal browser. I think with Orion (no Cloud), you used the master branch UI because the IP address was hardcoded right? This should be fixed in the next release. Hopefully you’d just be able to install the new version and have everything working with the logs.
x

Xavier Babu

05/09/2022, 4:00 PM
Yes we logged-in to Cloud UI in another window of the same browser, so that for any other launch o f the same window in the same session would work. Even we ask the user to login using Prefect 2.0 Cloud account to launch the UI via IFrame. But there is restriction in the way Prefect 2.0 Cloud Web server is configured. What is the timeline to get the next release?
k

Kevin Kho

05/09/2022, 4:05 PM
It should be soon (it’s been a month since last release). But don’t know the exact stuff that needs to happen for the next release. That hardcoded IP is one of the items though.
x

Xavier Babu

05/16/2022, 5:06 PM
I was informed that 2.0b4 is released, is it having the Prefect UI code where now we can change the IP address (replacing the hardcoded localhost)?
k

Kevin Kho

05/16/2022, 5:46 PM
Yes but the env variable is different:
PREFECT_ORION_UI_API_URL
. And then there was a patch this morning because there were still some references to the old env variable here
2 Views