CORS problem solved