iframe displays “refused to connect” for Grafana

유비빅·2021년 6월 25일
0

grafana.ini 설정에 allow_embedding = false가 기본 설정이라 생기는 현상

[security] allow_embedding=true cookie_secure=true cookie_samesite=none

그라파나로 차트를 표출한걸 웹 페이지에 반영하려다 보니 iframe으로 가져올 수 있었다
변경 하면 잘 뜨는걸 확인 할 수 있다 따로 cors설정까지 할 필요가없다

💡.ini파일 경로는
/var/lib/grafana 안에 들어있다

https://github.com/grafana/grafana/issues/17458
https://community.grafana.com/t/dashboard-using-iframe-not-opening-in-web-broweser-window/19304/8

0개의 댓글