Missing csrf token in request header

I’m using temporal 1.19.1

I met err on temporal-ui when try to “terminate a flow”, “query a flow”.

I notice a param of ui “TEMPORAL_CORS_ORIGINS”, I kept it default to “http://localhost:3000” and my server and ui has independent domain like “server.fake.com”, “ui.fake.com”. does it cause the err?

Hello @jackban

I guess that you have to set TEMPORAL_CORS_ORIGINS to the URL where your UI is deployed. The URL making the request

I have tried set TEMPORAL_CORS_ORIGINS to flowing value, it does not work

Hi @jackban

I see the ticket is still open An error occurred while terminating workflow · Issue #793 · temporalio/ui · GitHub

Apparently, there is a workaround An error occurred while terminating workflow · Issue #793 · temporalio/ui · GitHub (I have not tested this)