Understanding CORS Misconfiguration and How It Can Be Exploited

Before discussing CORS misconfigurations, it is important to understand what CORS is and why it exists.