openimsdk / openimsdk/openim-docker
OpenIM Admin Dashboard cannot load Grafana due to CORS and X-Frame-Options restrictions (Docker deployment)
Nobody has claimed this yet.
- Dominant language
- Go Template
- Stars
- 88
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
OpenIM Server Version
3.8.0
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Docker Deployment
Bug Description and Steps to Reproduce
Hi team,
I’m using Docker (docker-compose) to deploy OpenIM with Prometheus and Grafana.
Prometheus targets are UP and Grafana works fine when accessed directly
(http://:13000).
However, when opening the monitoring/dashboard page in OpenIM Admin
(http://:11002), the browser blocks the request due to:
- CORS policy (no Access-Control-Allow-Origin)
- X-Frame-Options set to deny (iframe blocked)
It seems the Admin frontend tries to fetch or embed Grafana directly,
but Grafana’s default security settings block this in Docker deployments.
It would be helpful if the documentation mentioned the required Grafana
configuration (e.g. allow_embedding or CORS settings).
Thanks!
Screenshots Link
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Docker Compose deployment configuration and the Grafana service settings, then reproduce the Admin dashboard access through port 11002 while checking the browser’s CORS and iframe errors. Document the required Grafana configuration for embedding and cross-origin access, with verification that Grafana still works directly on port 13000 and loads inside the Admin dashboard.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, grafana
- Domain
- devops, documentation, observability-sre
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100