Bivu Raj

08/18/2020, 6:26 PM
Hello prefect team !! With the new prefect UI (that was released maybe 3 weeks ago), I am getting this error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:4200/graphql. (Reason: CORS request did not succeed)." Any idea what is going on? Thanks
I can see this error message when I open the debugger in the frontend at 8080

Jim Crist-Harif

08/18/2020, 7:14 PM
Hi Bivu, how have you deployed prefect server? Are you sure the UI is configured with the proper backend api address? Is there any sort of proxy in between the browser and the api backend?

Bivu Raj

08/19/2020, 4:27 PM
Hello @Jim Crist-Harif I am deploying locally with the core, and not yet to the cloud. there is no proxy. I start the server with
prefect server start
command. To make things clearer, the UI gives the error message:
couldn't connect to: <http://localhost:4200>
however, when i try to change the url of the endpoint so UI can talk to the server, i do not see any change int he UI. for reference, this is the toml:
endpoint = "<>"
graphql_url = "<>"
host = "<>"
port = "9081"
host_port = "9081"
graphql_url = "<>"


08/19/2020, 7:23 PM
Hi @Bivu Raj - have you tried updating the graphql endpoint through the UI (in the Prefect Server tab of the "Home section")?