I encountered a CORS problem while attempting to connect to Neo4j in an Angular2 component:
Response to preflight request doesn't pass access control check. A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://localhost:8080' is therefore not allowed access. The credentials mode of an XMLHttpRequest is controlled by the withCredentials attribute.
Is there a way to specify withCredentials: false
in the request (Typescript)? I believe this could solve the issue. However, the request ts file does not have withCredentials
listed in its CoreOptions
object. Also, the Neo4j-Typescript package does not include this in its Typescript definition.