henszey / etcd-browser

A quick and easy way to view/edit basic keys in etcd.
http://henszey.github.io/etcd-browser/
MIT License
672 stars 232 forks source link

Origin is not allowed by Access-Control-Allow-Origin #1

Closed zhaoweiguo closed 10 years ago

zhaoweiguo commented 10 years ago

Should we add "dataType: 'jsonp'" if you cross-domain using ajax

henszey commented 10 years ago

jsonp requires the server to support it. It doesn't look like etcd currently supports jsonp. Additionally jsonp only works for GET not the PUT/DELETE they are currently using.

You can however start your server using -cors='*' which will allow you to do cross-domain ajax requests against it.

zhaoweiguo commented 10 years ago

Thanks