Re: CORS problem

2021-10-21 Thread Jeff Zhang
Thanks for your sharing, could you contribute it to Zeppelin doc ? Alessandro Busato 于2021年10月21日周四 下午3:54写道: > I don't want boring you with this problem but I implemented the definitive > solution keeping zeppenlin authorization as is. I think is the more clean > solution. > > Use apache proxy

Re: CORS problem

2021-10-21 Thread Alessandro Busato
I don't want boring you with this problem but I implemented the definitive solution keeping zeppenlin authorization as is. I think is the more clean solution. Use apache proxy to overcome CORS problems I did proceed in this way: Zeppelin: modify zeppelin-site.xml change property zeppelin.ser

Re: CORS problem

2021-10-18 Thread Alessandro Busato
it is better /api/notebook/** = authcBasic /** = authc this replacement permits logging-in to webapp with no basic authentication browser popup and a the same time to use rest notepbook api in CORS mode with no problem. Alessandro On 2021/10/18 06:58:02, Alessandro Busato wrote: > I solved

Re: CORS problem

2021-10-17 Thread Alessandro Busato
I solved in this way, I exploited the BasicAuthentication of shiro, I edited conf/shiro.ini and changed /** = authc into /** = authcBasic I think this "workaround" is less secure than others but in this way I can make CORS request even if the jquery doen't set JSESSIONID $.ajax({

Re: CORS problem

2021-10-17 Thread Alessandro Busato
On 2021/10/17 11:11:21, Jeff Zhang wrote: > Do you embed zeppelin as an iframe in your app ? No, it isn't. Best regards, Alessandro > > Alessandro Busato 于2021年10月17日周日 下午6:11写道: > > > Evewrithing works in the if zeppelin and my webapp lives in the same > > origin, > > but NOT when I'm

Re: CORS problem

2021-10-17 Thread Jeff Zhang
Do you embed zeppelin as an iframe in your app ? Alessandro Busato 于2021年10月17日周日 下午6:11写道: > Evewrithing works in the if zeppelin and my webapp lives in the same > origin, > but NOT when I'm trying to connecto to zeppelin server via CORS, > the login step works, > but others as "notebook list"

CORS problem

2021-10-17 Thread Alessandro Busato
Evewrithing works in the if zeppelin and my webapp lives in the same origin, but NOT when I'm trying to connecto to zeppelin server via CORS, the login step works, but others as "notebook list" jquery cannot set JSESSIONID so Zeppelin respond with redirect to /api/login throwing an exception becau