Hello, guys.
I'm making the Build an Angular 1.5 application with ES6 and Components tutorial and, when I try to make a POST request using $http for /api/users, like specified in API.md, I get an error on the pre-flight:
XMLHttpRequest cannot load https://conduit.productionready.io/api/users. Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:4000, *', but only one is allowed. Origin 'http://localhost:4000' is therefore not allowed access.
I made the same request using curl on my console and got no error. I was able to create a new user and also login (i.e. no OPTION request, no pre-flight).
$ curl -X POST https://conduit.productionready.io/api/users -vsL -d "{\"user\":{\"email\":\"[email protected]\", \"password\":\"12345678\"}}" -H 'Content-type: application/json'
So, it seems to be a server side problem. Can someone check it, please?