Zeppelin 實現 iframe 分享的相關問題

Zeppelin製作的圖標可以生成 iframe 進行分享,但是在實踐過程中會遇到幾個坑。

1. X-Frame-Options

參考https://zeppelin.apache.org/docs/0.7.3/security/http_security_headers.html

修改zeppelin-site.xml

<property>
  <name>zeppelin.server.xframe.options</name>
  <value>ALLOWALL</value>
  <description>The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a frame/iframe/object.</description>
</property>

 

解決了x-frame問題後,iframe可以嵌入其他域名的網站,但是要看到這個iframe,必須是登陸的用戶,如何讓未登陸用戶查看呢?

 

2. 允許匿名用戶查看分享的paragraph iframe

 需要改動conf/shiro.ini

shiro有URL層面的權限空值,在配置文件的 [url] 一項

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章