hoodiehq-archive / my-first-hoodie

⛔ deprecated
Other
157 stars 35 forks source link

Cross domain requests #21

Closed robhrt7 closed 11 years ago

robhrt7 commented 11 years ago

I've set up Hoodie app to nodejitsu hosting, and tried to work with external hosted app from localhost, where I've faced cross domain requests error:

Origin null is not allowed by Access-Control-Allow-Origin. 

Is it possible to open app for those kind of requests? I want to make common database for development enviroment and production.

gr2m commented 11 years ago

what's the .jit.su URL?

robhrt7 commented 11 years ago

http://hoodie-hoodie.nodejitsu.com/

gr2m commented 11 years ago

works fine. You have to init Hoodie with

hoodie = new Hoodie('http://hoodie-hoodie.nodejitsu.com/_api')
robhrt7 commented 11 years ago

That helped, thank you!