temporalio / temporalio/ui

UI cannot be displayed in IFrame due to CORS issues

Open
#1,346 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
431
Forks
179
Avg merge
2d 9h
Merged PRs (30d)
71

Description

Expected Behavior

Temporal UI should be displayed in an iframe of another application when CORS is set to '*'.

Actual Behavior

Content is blocked. Iframe is empty

Steps to Reproduce the Problem

  1. Setup temporal with docker environment. Set the corresponding environment variables like so in docker-compose.yml
[...]
temporal-ui:
  container_name: temporal-ui
  depends_on:
    - temporal
  environment:
    - TEMPORAL_ADDRESS=temporal:7233
    - TEMPORAL_CORS_ORIGINS=*
  image: temporalio/ui:${TEMPORAL_UI_VERSION}
  networks:
    - temporal-network
  ports:
    - 8080:8080
[...]
  1. Access the exposed port via an iframe.
  2. IFrame reports blocked content.

Specifications

  • Version:
    TEMPORAL_VERSION=1.20.2
    TEMPORAL_UI_VERSION=2.13.3
  • Platform:
    Linux / Google Kubernetes Engine

Context

I want to use the UI as part of a dashboard beacause here I have the benefit of not having the user authenticate in temporal, but beforehand in the dashboard. Therefor I want to display the UI inside it, hence the IFrame.

Thank you for sharing this great piece of software.
Suggestions appreciated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the docker-compose.yml configuration and reproduce the iframe failure using the reported Temporal UI and environment versions. Inspect the browser’s blocked response and the UI’s CORS and iframe-related behavior. Done means the UI loads inside an iframe when TEMPORAL_CORS_ORIGINS is set to '*', without the content being blocked.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, typescript
Domain
frontend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.