Fixing CORS issues on safari