Ah indeed, that was probably the reason I never got it to work, thanks for
pointing that out!
--
View this message in context:
http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/ajax-call-tp4024p4039.html
Sent from the Apache Zeppelin Users (incubating) mailing list mailin
The CORS actually needs to be set where he is trying to fetch the XML, not
on Zeppelin side.
On Sun, Sep 4, 2016 at 4:58 AM, tolomaus
wrote:
> There is an option zeppelin.server.allowed.origins in zeppelin-site.xml to
> configure the origin you want to allow, but I never got it to work. If I
> r
There is an option zeppelin.server.allowed.origins in zeppelin-site.xml to
configure the origin you want to allow, but I never got it to work. If I
recall well it was only partially implemented.
I worked around this problem with jsonp:
$.ajax({
url: "http://...";,
data: {a: "xxx",
If you look into your console, you will see that there is a Cross Domain
error.
XMLHttpRequest cannot load http://www.thomas-bayer.com/sqlrest/CUSTOMER/3.
No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'http://localhost:9000' is therefore not allowed access.
I believe this simple test should work but it isn't on my Zeppelin. Anyone
could help to cut and paste to try, to be sure my Zeppelin is behaving
correctly. And BTW, anyway to turn on more logs, could not find anything in
zeppelin or angular log.
%angular
var request = jQuery.ajax({
url: "
Hi,
I've been using jQuery.when() inside an %angular paragraph (
https://www.zeppelinhub.com/viewer/notebooks/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2Nvcm5lYWRvdWcvWmVwcGVsaW4tTm90ZWJvb2tzL21hc3Rlci9BdXRvLUNvbXBsZXRlLU11bHRpU2VsZWN0L25vdGUuanNvbg
)
I don't know if $ keyword would be usable,