API CORS Headers Incorrect

You need to use headers for the API key and username. Check http://docs.discourse.org/ for details.