Installed Nelmio CORS bundle and FosRestBundle and fixed some angular CORS nonsense