Halfway through solving the CORS problem

Still an issue - not there yet