Zeppelin製作的圖標可以生成 iframe 進行分享,但是在實踐過程中會遇到幾個坑。
參考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] 一項