This post https://groups.google.com/forum/?pli=1#!searchin/orient-database/enable$20cors/orient-database/vjOoxKwNv34/YtU3RirURfQJ
explains how to enable CORS on the OrientDB server. I don't know if the configuration still works the same today. You will also have to add some headers to your http request if I am not mistaken. Do a wikipedia search to find out how CORS works. Op dinsdag 23 december 2014 01:55:15 UTC+1 schreef jeremies: > > Thanks for your reply. > > > > I'm glad to hear that it worked for you. However, I'm having a bit of > difficulty in figuring out how to get this app to work as a web app. > > > > I tried searching into the source code of the OrientDB Studio web app and > was able to notice that they use the orientdb JavaScript API along with > some AngularJS, which looks very fascinating, but then I tried on my side > by creating a simple web page that imported the orientdb-api.js and the > jquery library, and it did not work. > > > > I've enclosed my web file. > > > > I'm using localhost in my JS, but it just seems to me that it does not > make sense to access my orientdb database on the server from the client. I > think I'm missing something, but still I'd really like to use the JS API > for OrientDB. Should I use something like Node.js or is the standalone JS > file sufficient? > > > > I get this error message when I run the JS code in the enclosed HTML file. > > > > Cross-Origin Request Blocked: The Same Origin Policy disallows reading the > remote resource at http://localhost:2480/database/GratefulDeadConcerts. > This can be fixed by moving the resource to the same domain or enabling > CORS. > > > > Any help, advice, or resources would be greatly appreciated. > > > > Regards, > > Jeremie > >> -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
