On the problem of Cross-Origin Resource Sharing (CORS)