Try and add the CORS headers before you might abort