I'm using Spark with Java and Angular 1 on client side. I keep getting this '-1' error when I send request to the server. The error is "No 'Access-control-allow-origin' header is present on the requested resource. Origin 'http://localhost:4567' is therefore not allowed access."
I understand it's a CORS issue so I add header 'Access-Control-Allow-Origin' : '*' and added it as well to the response on server side. Unfortunately it doesn't seem to solve my problem.
Need your help guys, Thanks!