Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-Origin Resource Sharing (CORS) support #64

Open
flip111 opened this issue Oct 21, 2015 · 0 comments
Open

Cross-Origin Resource Sharing (CORS) support #64

flip111 opened this issue Oct 21, 2015 · 0 comments

Comments

@flip111
Copy link

flip111 commented Oct 21, 2015

I was trying to browserify this package so can quickly prototype some client side app without having to setup a server (apart from neo4j itself). Looking at these stackoverflow comments there is a problem with the neo4j server with the old cypher endpoint but everything should work fine with the transactional endpoint.

http://stackoverflow.com/a/26976950/1833322
http://stackoverflow.com/a/26686262/1833322 (comment)

so i just tried

var db = new neo4j('http://neo4j:neo4j@localhost:7474');
db.beginTransaction();

as i was guessing the beginTransaction function would do something with the transactional endpoint. But i'm still getting the CORS error:

XMLHttpRequest cannot load http://localhost:7474/db/data/transaction. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. The response had HTTP status code 401.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant