improved debugging so you can actually understand why the CORS is failin...

...g